Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Excerpts, Read more, Pagination (http://forum.bytesforall.com/forumdisplay.php?f=20)
-   -   [SOLVED] Banner inside posts (http://forum.bytesforall.com/showthread.php?t=1448)

evripidis Apr 27, 2009 08:25 PM

[SOLVED] Banner inside posts
 
Is there any way to put a banner inside every single post, for example in the upper right corner ?
Of course to be visible only in single post and not in the main page.

I'm trying it inside the template settings but i can't figure it out if its possible.

Any help please ?

Flynn Apr 27, 2009 09:53 PM

See how it's done for the icon for sticky posts at Theme Options -> Post/Page Styling -> POST Container: STICKY and do something similar for POST Container

evripidis Apr 28, 2009 07:27 AM

That's exactly what i'm looking for Flynn thank you. But i have a small problem cause the banner is actually a script and i can't figure it out how to put it like the sticky.gif

Flynn Apr 28, 2009 12:47 PM

You could put the code into one of the Kicker textareas at Post / Page Info Items and adjust the position with CSS. Otherwise you'd have to put it into index.php after <div class="post-bodycopy"> with conditional comments

<?php if ( is_single() ) { ?>
<div class="mycode">
...
</div>
<?php } ?>

CSS Insert

div.mycode {
float: right;
margin: ...
padding: ...
}

Or, if you plan to do more edits for single post pages, make a copy of index.php as single.php. Then you'd not need the <?php if ( is_single() ) { ?> and <?php } ?> parts

evripidis Apr 28, 2009 01:04 PM

Many thanks! The index.php solution worked fine!

evripidis May 13, 2009 03:42 PM

Are there any changes at 3.3.3, for the index.php solution ?

Flynn May 13, 2009 08:34 PM

In 3.3.3 put it above

<?php bfa_post_bodycopy(); // Post Bodycopy: To edit the output, see functions/bfa_post_parts.php ?>

evripidis May 14, 2009 01:25 PM

Thanks again Flynn. Now it's working again ;)

evripidis Jul 6, 2009 03:29 PM

Is this working in 3.4 ?

evripidis Jul 6, 2009 04:15 PM

Found it!

For the rest, you have to do the same actions but the code must be copied at :
Style & Edit CENTER COLUMN --> The LOOP


All times are GMT -6. The time now is 06:01 AM.

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