Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Center area post/pages (http://forum.bytesforall.com/forumdisplay.php?f=32)
-   -   [SOLVED] How to add an image banner above the post title? (http://forum.bytesforall.com/showthread.php?t=15528)

wpgomez Sep 30, 2011 03:18 AM

[SOLVED] How to add an image banner above the post title?
 
Hi,

I am trying to add an image banner just above the post title but I cannot find where I can do that. Can you please help?

Thanks.

Jam Sep 30, 2011 03:47 AM

Add a background image to the title, position the image above it. You will have to add padding top to allow the image to show.
Same for adding images to Widget titles. You'll have to play with height, padding, maybe margins and positioning, but it is a background image to the title you want.

wpgomez Sep 30, 2011 05:15 AM

Hi Jam,

Thanks for the quick answer. Your suggestion will probably work but I don't want to add the image as a background to the title. I want to add it above the title. Honestly, this theme is quite difficult to make such changes.

juggledad Sep 30, 2011 05:47 AM

just add it to the post title for example
HTML Code:

<img  src="http://yourdomain.com/wp-content/post-title-image.jpg" alt="" /><br>This post has an image above it
if you want it to show on the blog page and you are displaying excerpts, you need to add '<img> to the 'Don't strip these tags' option in the 'configure EXCERPTS' section

wpgomez Sep 30, 2011 06:09 AM

OK, let me reword my question because it seems it is understood as an image for the title. It is nothing to do with the title, I just want a banner above the post area (which also means above the post title). Just like the below layout:

http://www.nailyener.com/wp-content/...nner-image.jpg

This will be a banner ad and it will show on all posts (not pages or homepage). So, where should I insert the
HTML Code:

<a href=""><img src="" /></a>
code?

lmilesw Oct 2, 2011 05:22 PM

Try putting the code in the kicker box(es) in ATO>Edit Post/Page Info Items

samij0 Dec 29, 2011 02:19 PM

I'm interested in doing something like this, too. My site is set up so that the front page displays a static page. On the blog page, I'd like to have an image/banner above the posts, but I don't want it to repeat above every post (so, for me, putting the image in the kicker section would not work). I tried cheating it by publishing a post with just the banner image in it and making it a sticky, but for some reason it shows the post name (even though I've checked the box to have it not display), and it also has the post footer with the categorization, which I don't want.

Any ideas on how to do this? If I'm unclear, let me know and I'll attach a screenshot of what I'm thinking.

Thanks!
~Sami

juggledad Dec 29, 2011 02:24 PM

put the image in a text widget in a new widget area and the 'widget lodgic plugin to control when it displays. Put the new widget code into index.php where is is in the loop.

samij0 Jan 3, 2012 08:51 AM

juggledad,

Thanks so much for responding quickly, and for introducing me to the widget logic plugin! Amazing! With a little trial-and-error, I figured out where to place the code in index.html and how to use widget logic to have it display only on my blog page.
Again, thank you and very happy new year!


All times are GMT -6. The time now is 10:02 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.