Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Plugins & Atahualpa »

How to edit single.php in atahualpa?


  #1  
Old Jan 28, 2010, 03:57 PM
Chloe
 
54 posts · Dec 2009
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.
  #2  
Old Jan 28, 2010, 11:56 PM
pakacil
 
20 posts · Jan 2010
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
  #3  
Old Jan 29, 2010, 09:06 AM
Chloe
 
54 posts · Dec 2009
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
  #4  
Old Jan 29, 2010, 10:30 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by juggledad; Jan 29, 2010 at 02:01 PM.
  #5  
Old Jan 29, 2010, 01:36 PM
Chloe
 
54 posts · Dec 2009
Thanks for the suggestion but that created a syntax error too--even after I change [/B} to [/b].
  #6  
Old Jan 29, 2010, 02:00 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
sorry, don't put in the [ B ] and [ / B ] those were there just to bold the statement - I've taken them out
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #7  
Old Jan 29, 2010, 02:09 PM
Chloe
 
54 posts · Dec 2009
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
  #8  
Old Jan 29, 2010, 02:22 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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>'); ?>
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #9  
Old Jan 29, 2010, 02:58 PM
Chloe
 
54 posts · Dec 2009
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.

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
php in single post Haser Atahualpa 3 Wordpress theme 3 Dec 4, 2012 07:54 PM
Why no single.php DavePorter Plugins & Atahualpa 5 Apr 23, 2010 06:45 PM
Atahualpa 3.4.4 Post Title doesnt Change after Edit Hamlet New Versions, & Updating 5 Mar 26, 2010 07:33 AM
Which php file should I Edit to Insert Opt In form in SideBar for Atahualpa Theme? kacang Sidebars & Widgets 0 Aug 1, 2009 03:41 AM
How do i EDIT Single Post? sns Atahualpa 3 Wordpress theme 2 Mar 9, 2009 10:25 AM


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


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