Community Forums › Forums › Archived Forums › Design Tips and Tricks › Insert text widgets between posts in homepage
Tagged: insert widgets
- This topic has 6 replies, 4 voices, and was last updated 11 years, 6 months ago by
Brad Dalton.
-
AuthorPosts
-
July 31, 2013 at 1:06 pm #53413
olafuring
MemberI am running a free Genesis template called "Autobahn" on my blog,
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 #53439RobG
MemberHere'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/
RobGoss WordPress Developer
We build WordPress websites for your business or personal goals
http://www.robgoss.com / Follow me Twitter / https://twitter.com/robgossAugust 1, 2013 at 1:14 am #53513Brad Dalton
ParticipantThis code will add one widget which displays the same content before all post excerpt titles on the home page when the reading settings as configured to display your latest posts:
August 2, 2013 at 10:14 am #53762olafuring
MemberThanks, 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 #53859Brad Dalton
ParticipantSimply change the conditional tag and hooks. I would test this on a local development installation which is where you'll really learn how it all works.
August 3, 2013 at 3:30 pm #53988David Decker
MemberAdding 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 #54034Brad Dalton
ParticipantI 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.
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.