Tagged: insert widgets
July 31, 2013 at 1:06 pm #53413
I wonder if and how it's possible to insert text widgets above and between posts on the homepage.
The reason is to insert small ads and/or clickbank products in between the individual posts, which are summarized on the homepage.
Can anyone please advise?http://cloudcomputingtopics.comJuly 31, 2013 at 4:10 pm #53439
Here's a great tutorial Brian Gardner wrote on how to add a welcome widget on your home page. http://www.briangardner.com/welcome-text-widget/ It's really simple and might be something you're looking for.
To speed up the process please post the link to the website in question.
We recommend using Firebug to view source codes http://getfirebug.com/August 1, 2013 at 1:14 am #53513August 2, 2013 at 10:14 am #53762
Thanks, this is great info for adding a "welcome text" field/widget above all homepage posts.
Any ideas how I can adjust the width of the widget? I would prefer to have the same width as the content section and that the right-sidebar widgets do not move down on the page when this widget is added (to the top of the posts in the content-section), i.e. it would be inserted not for the whole page, but only on top of the main content (not affect the sidebar)
Secondly, I also wonder how it's possible to add similar fields "between" individual post on the homepage (not just one at the top). Any ideas?August 2, 2013 at 9:41 pm #53859August 3, 2013 at 3:30 pm #53988
Adding blocks of text/widgets/etc. between single posts IN A LISTING (a.k.a. the loop) is not as easy as it seems! As of my knowledge this would require tweaking the loop.
I have read a tutorial in German some years ago where one blogger achieved that for his google ad stuff -- but was not on a Genesis theme...
I hope I understood the issue correctly, I would make it via widget blocks - when using the widgetized homepage - or as Brad said, using hooks/conditionals.
August 3, 2013 at 9:28 pm #54034
I think another way would be to use custom fields using the right hook and conditional tag if you want different Google ads between each post excerpt on archive pages other wise you're going to need a lot of widgets.
You would also install a plugin like Advanced Custom Fields which creates a custom meta box on each edit post screen so you simply paste in the code for your ads.
You must be logged in to reply to this topic.