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)
-   -   How to edit single.php in atahualpa? (http://forum.bytesforall.com/showthread.php?t=5567)

Chloe Jan 28, 2010 03:57 PM

How to edit single.php in atahualpa?
 
Hello,

I'm still trying to get my banner ad embedded globally in all my posts. In my old theme I would have added my PHP code to single.php but I don't know where that file is in atahualpa. I want the ad to be in the middle-right of each post--globally.

Thanks for your help.

pakacil Jan 28, 2010 11:56 PM

this is what I tried to do

on Atahualpa Options
→ go to Center Column section
→ go to Style & edit CENTER COLUMN tab
→ Find The LOOP and for example in this code line
Code:

<?php bfa_post_bodycopy('<div class="post-bodycopy clearfix">','</div>'); ?>
i tried to add something (in bold) and change it to this...
Code:

<?php bfa_post_bodycopy('<div class="post-bodycopy clearfix"><img align="right" src="http://localhost/wp/wp-content/uploads/2010/01/ngawur.jpg">','</div>'); ?>
as a result: a picture of ngawur.jpg is always appears in every post

Chloe Jan 29, 2010 09:06 AM

Thanks very much. That's getting me closer to solving the problem. I need to put this:

include("http://www.womenscycling.ca/top_ad.php");


in this: <?php bfa_post_bodycopy('<div class="post-bodycopy clearfix">','</div>'); ?>

but don't know how to do that.

Any suggestions?

Thanks again

juggledad Jan 29, 2010 10:30 AM

try this
HTML Code:

<?php bfa_post_bodycopy('<div class="post-bodycopy clearfix"><script type='text/javascript'>
show_banners('top_ad');</script>','</div>'); ?>

since that is what is in that code anyway

Chloe Jan 29, 2010 01:36 PM

Thanks for the suggestion but that created a syntax error too--even after I change [/B} to [/b].

juggledad Jan 29, 2010 02:00 PM

sorry, don't put in the [ B ] and [ / B ] those were there just to bold the statement - I've taken them out

Chloe Jan 29, 2010 02:09 PM

I get this error:

Parse error: syntax error, unexpected T_STRING in /home/fitatfiv/public_html/surenetonline/new_cycling/wp-content/themes/atahualpa/functions.php(499) : eval()'d code on line 17

juggledad Jan 29, 2010 02:22 PM

Oh it may be the single quotes in the new code, try this
HTML Code:

<?php bfa_post_bodycopy('<div class="post-bodycopy clearfix"><script type="text/javascript">
show_banners("top_ad");</script>','</div>'); ?>


Chloe Jan 29, 2010 02:58 PM

THANK YOU! That worked. Now I just have to figure out how to position it from the top of the page to 1/3 down. Any ideas?

Thanks very much. I'm going to make a donation.


All times are GMT -6. The time now is 07:36 PM.

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