[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 ? |
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
|
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
|
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 |
Many thanks! The index.php solution worked fine!
|
Are there any changes at 3.3.3, for the index.php solution ?
|
In 3.3.3 put it above
<?php bfa_post_bodycopy(); // Post Bodycopy: To edit the output, see functions/bfa_post_parts.php ?> |
Thanks again Flynn. Now it's working again ;)
|
Is this working in 3.4 ?
|
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 02:29 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.