Wont to add a special code blew the rating

  • abdl86

    #6588

    Hi i wont to add this code so i get it below the rating that i have on my blog: http://www.myabdllife.com/

    But i dont know witch file i should look in to. And i wounder if i can add the code to my child theme that i have?

    <?php if(function_exists('fdx_add_sharethis')) { fdx_add_sharethis();} ?>

    Prasanna SP

    #34955
    function show_fdx_shrethis() {
    if(function_exists('fdx_add_sharethis')) {
    fdx_add_sharethis();
    }
    }

    add_action('graphene_after_post_content','show_fdx_shrethis');
    add_action('graphene_after_page_content','show_fdx_shrethis');

    Put code in between backtick (

    Code:
    `

    ) characters. It’s usually located above the Tab key on your keyboard.

    abdl86

    #34956

    But in what file should i add it in?

    Mod

    Kenneth John Odle

    #34957

    That code will add it to the “graphene_after_post_content” action hook. It will automatically appear after your post content. (And pages.)

    abdl86

    #34958

    But i dont find that file that you wont me to add the code. I dont find any file whit that name.

    Mod

    Kenneth John Odle

    #34959

    Add that code to your child theme functions file. You will need to have a child theme setup for this.

    If not, install the PHP widget, and then add that code to a PHP widget.

    abdl86

    #34960

    It dont work. I get it on the top of may blog and dont after may post.

    Prasanna SP

    #34961

    That’s a php function. You need to add the above code after opening php tag i.e <?php

    <php
    function show_fdx_shrethis() {
    if(function_exists('fdx_add_sharethis')) {
    fdx_add_sharethis();
    }
    }

    add_action('graphene_after_post_content','show_fdx_shrethis');
    add_action('graphene_after_page_content','show_fdx_shrethis');

    abdl86

    #34962

    No change the same problem.

    Prasanna SP

    #34963

    Then add a php widget to any of the available action hooks widget area and put

    <?php
    if(function_exists('fdx_add_sharethis')) {
    fdx_add_sharethis();
    }
    ?>

    in it.

Viewing 10 posts - 1 through 10 (of 15 total)

You must be logged in to reply to this topic.