Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Center area post/pages (http://forum.bytesforall.com/forumdisplay.php?f=32)
-   -   Add Social Button Code After Header Just Before Content? (http://forum.bytesforall.com/showthread.php?t=18888)

GRF Nov 11, 2012 08:51 PM

Add Social Button Code After Header Just Before Content?
 
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

juggledad Nov 12, 2012 02:33 AM

In 3.7.9 the latest release, you will have to edit index.php and put it there

GRF Nov 12, 2012 06:34 AM

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; ?>


juggledad Nov 12, 2012 07:18 AM

ty putting it before
HTML Code:

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

GRF Nov 12, 2012 07:59 AM

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?

joshuamu Nov 14, 2012 04:15 PM

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


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

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