Community Forums › Forums › Archived Forums › General Discussion › Lifestyle Pro Widgets
Tagged: lifestyle Pro
- This topic has 18 replies, 2 voices, and was last updated 10 years, 9 months ago by Emblem.
-
AuthorPosts
-
December 4, 2013 at 2:31 am #76918EmblemMember
Hi
I have recently upgraded to Lifestyle Pro and am having issues with adding a widget to the bottom of my site just above the footer widgets. Before I upgraded it was fine. I have added
genesis_register_sidebar( array( 'id' => 'after-content-ad', 'name' => 'After Content Ad', 'description' => 'This is a sidebar that goes after the content.', ) );
to functions.php and this to style.css
.after-content-ad { border-bottom: double #ddd; border-top: double #ddd; font-family: 'Lora', serif; font-size: 12px; line-height: 1.0; overflow: hidden; padding: 25px 0; text-align: center; }
.after-content-ad p {
font-size: inherit;
line-height: 1.0;
margin: 0;
}`Although the widget appears on the widget list as After Content Ad, it is not showing on the site. Please can you tell me where I have gone wrong?
Many thx
http://www.eyebeautytips.comDecember 4, 2013 at 9:12 am #76942Brad DaltonParticipantThat only registers the widget.
You also need to hook it in.
Here's an example of the PHP you need to use.
Note: Please copy all the code from the view raw link and paste it at the end of your child themes functions.php file using a text editor like Notepad++
Change the hook to change the position of your widget.
December 5, 2013 at 5:37 am #77156EmblemMemberHello
This is what I have in my functions.php file
genesis_register_sidebar( array( 'id' => 'after-content-ad', 'name' => 'After Content Ad', 'description' => 'This is a sidebar that goes after the content.', ) ); add_action( 'genesis_after_content_sidebar_wrap', 'custom_after_content_ad' ); function custom_after_content_ad() { genesis_widget_area( 'after-content-ad', array( 'before' => '<div class="after-content-ad widget-area">', 'after' => '</div>', ) ); }
Unfortunately the widget appears at the top of the home page next to the breadcrumbs. (marked by 't') Can you please tell me what I have done wrong?
December 5, 2013 at 9:05 am #77195EmblemMemberAddendum
The widget works perfectly well on pages which have the full width layout
such as
December 5, 2013 at 9:06 am #77196EmblemMemberAddendum
The widget works perfectly well on pages which have the full width layout such as
http://www.eyebeautytips.com/about/contact/December 5, 2013 at 9:24 am #77200Brad DaltonParticipantLink to your site please.
Try changing to the genesis_before_footer hook.
Is it for the front page only or site wide?
December 5, 2013 at 9:35 am #77202EmblemMemberhi
I have just changed it to genesis_before_footer hook. However it takes a while for changes to show with or without caching plugin activated
I would like it to be site wide.
December 5, 2013 at 9:38 am #77203Brad DaltonParticipantLink to your site please so i can can try and work out what the problem is.
December 5, 2013 at 9:49 am #77216December 5, 2013 at 10:05 am #77225December 5, 2013 at 10:41 am #77235EmblemMemberI have added the link http://www.eyebeautytips.com several times but it does not reflect in this post. Sorry if it just takes a long time.
December 6, 2013 at 12:59 am #77321EmblemMemberDecember 9, 2013 at 3:06 am #77796EmblemMemberI have changed the hook to to the genesis_before_footer. It is not showing on the site.
If I add 'genesis_after_content_sidebar_wrap it only appears in the correct position on pages without any sidebar widgets.I have tried deactivating all plugins and adding it to another site. The same thing occurs. I think that I may be using the wrong code but I have tried many variations.
Please can you help as I need this widget for an advertiser.December 9, 2013 at 3:10 am #77797EmblemMemberContradiction. The widget is now showing but is not the position that I need.
December 9, 2013 at 1:52 pm #77872Brad DaltonParticipantI see the t . Isn't that where you want it? Before the footer?
adding a widget to the bottom of my site just above the footer widgets.
December 10, 2013 at 3:56 am #78011EmblemMemberHi
If you take a look at
you will see where I have added 'eye beauty tips' to the new widget. This page has no sidebars at all. This is where I want the widget to appear throughout the site.However on the front page
and all post pages
the new widget appears at the top of the page and underneath the sidebars.The hook I am using is 'genesis_after_content_sidebar_wrap'. This worked perfectly well before I upgraded to Lifestyle Pro.
I have tried all the other hooks but nothing works for me.December 11, 2013 at 2:11 am #78293EmblemMemberHi
I would like the widget to be site wide and positioned before the 3 footer widgets, not before the footer. I am using the hook 'genesis_after_content_sidebar_wrap'. If you take a look at
you will see I have written 'eye beauty tips' in the widget but it is broken up and appears next to the breadcrumbs and at the bottom of the primary sidebar.However on pages with full width content it appears in the correct position, for example.
.I have tried all the hooks but none are working for me. This worked before I upgraded to Lifestyle Pro.
December 11, 2013 at 7:43 am #78308EmblemMemberDecember 11, 2013 at 7:45 am #78311 -
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.