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 » Center area post/pages »

Add Social Button Code After Header Just Before Content?


  #1  
Old Nov 11, 2012, 09:51 PM
GRF
 
76 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, 03:33 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
In 3.7.9 the latest release, you will have to edit index.php and put it there
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Nov 12, 2012, 07:34 AM
GRF
 
76 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, 08:18 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
ty putting it before
HTML Code:
	<?php while (have_posts()) : the_post(); $bfa_ata['postcount']++; ?>
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Nov 12, 2012, 08:59 AM
GRF
 
76 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, 05: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



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 09:12 PM
Add social icons to header dingest Header configuration & styling 1 Dec 16, 2010 09:23 PM
Including code under a button for readers to snag pltrace Sidebars & Widgets 1 Mar 30, 2009 08:47 PM


All times are GMT -6. The time now is 11:58 AM.


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