Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Plugins & Atahualpa (http://forum.bytesforall.com/forumdisplay.php?f=16)
-   -   where to put code for Rotating Posts plugin (http://forum.bytesforall.com/showthread.php?t=8852)

moomum Aug 12, 2010 06:55 AM

where to put code for Rotating Posts plugin
 
Hiya - I can get this to work by putting a bit of code into each page but if I wanted it on every page where should I put the code - I can find index.php but I don't know where this should go:

<?php rotating_posts(); ?>

And if anyone knows how to make it keep the same box size that would be great!

Lisa

lmilesw Aug 12, 2010 08:19 AM

I have not tested this but I would suspect you would put it right above the following line if you want it to show after the content of the post.
HTML Code:

<?php get_footer(); ?>
Make a copy of index.php first in case something doesn't work after editing it.

moomum Aug 12, 2010 08:30 AM

I want it to show before the content of the post, but I'll try this and see what it looks like - thank you. The idea is to get people to look around the site more.

lmilesw Aug 12, 2010 08:35 AM

In that case I would try putting it right after the first section of the index.php which ends with.
HTML Code:

get_header(); ?>
I am curious to know how it goes for you.

moomum Aug 12, 2010 10:15 AM

that works fine, thank you. It would be better if it was smaller in height but I can't find the settings for that. I think I have to play around with the CSS, which I can find but I can't work out which bit I need to alter :-) I can get the box to be the same size but the navigation bar leaps up and down.


All times are GMT -6. The time now is 03:44 AM.

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