Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages »

Add Social Button Code After Header Just Before Content?


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Nov 11, 2012, 08:51 PM
GRF
 
69 posts · Mar 2011
I want to add some Javascript code just after the post header and just before the start of the first paragraph to add some social media buttons.

Can you tell me what file I need to modify to do that? I'm using Atahualpa 3.6.3 and Atahualpa 3.6.4

Thanks, Glenn
  #2  
Old Nov 12, 2012, 02:33 AM
juggledad's Avatar
juggledad
 
21,982 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
In 3.7.9 the latest release, you will have to edit index.php and put it there
__________________
If you like my help, please consider donating. I am happy to provide greater detail on this and other topics if you hire me. Please send detailed support requests to me as a private message, thank you.
Juggledad | Forum Moderator/Support
  #3  
Old Nov 12, 2012, 06:34 AM
GRF
 
69 posts · Mar 2011
Thanks for the help,

I'm forced to stick with v3.6.3 and v.3.6.4 for now.

In the blog I have v3.6.4 installed in I put my code in the index.php file before <?php include 'bfa://content_inside_loop'; ?> and it adds my button code at the very top of the post, but need it to go after the header, just at the start of the text for the post. Do I need to edit 'bfa://content_inside_loop' to do this? If so, where is it located?

For example:

THIS IS THE POST HEADER

A PICTURE [MY BUTTONS] "This article is about...."

Code:
	<?php while (have_posts()) : the_post(); $bfa_ata['postcount']++; ?>

/* WHERE I PUT MY CODE */

		<?php include 'bfa://content_inside_loop'; ?>
			
	<?php endwhile; ?>
  #4  
Old Nov 12, 2012, 07:18 AM
juggledad's Avatar
juggledad
 
21,982 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
ty putting it before
HTML Code:
	<?php while (have_posts()) : the_post(); $bfa_ata['postcount']++; ?>
__________________
If you like my help, please consider donating. I am happy to provide greater detail on this and other topics if you hire me. Please send detailed support requests to me as a private message, thank you.
Juggledad | Forum Moderator/Support
  #5  
Old Nov 12, 2012, 07:59 AM
GRF
 
69 posts · Mar 2011
Ah. That didn't work.

Do you know of a plugin that can globally insert code so that it will be inserted at the beginning of the post so I don't have to mess arount the the theme code?
  #6  
Old Nov 14, 2012, 04:15 PM
joshuamu
 
88 posts · Jun 2012
nairobi
Use ad injection plugin and inside the ad injection plugin dashboard style the buttons the way you want them to render. I know you are looking for something like this http://www.christiantruthcenter.com/...-great-dangers Take a look at the ad below the post title. your buttons can appear their too

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to add social sharing button component to Post Info Items lowper Header configuration & styling 1 Oct 5, 2012 08:12 PM
Add social icons to header dingest Header configuration & styling 1 Dec 16, 2010 08:23 PM
Including code under a button for readers to snag pltrace Sidebars & Widgets 1 Mar 30, 2009 07:47 PM


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


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