Images in Footer

  • Tenacious

    #1009

    I’d like to put little ads in the footer, but cannot figure out how. I’d like to keep the custom copyright and developer information; perhaps putting the images in the middle?

    Any help is greatly appreciated.

    Kim

    #14252

    Please Supply Link/URL To The Site In Question!

    Kim

    Admin

    Syahir Hakim

    #14253

    Add this code into your child theme’s functions.php file:

    function graphene_footer_content(){ ?>
    <div class="custom-footer-content">
    <!-- Put your HTML codes here -->
    </div>
    <?php }
    add_action('graphene_developer', 'graphene_footer_content');

    Make sure you replace <!-- Put your HTML codes here --> with whatever HTML codes you want to put in there, and then position/style it using CSS.

    Tenacious

    #14254

    Sorry, I was very busy yesterday and didn’t notice the post updated.

    Here is the link to the site in question: http://soicraft.net/

    I put the code into the child theme’s functions.php, but I get an error:

    “Parse error: syntax error, unexpected ‘}’ in /home/soicraft/public_html/wp-content/themes/graphene-child/functions.php on line 5”

    Admin

    Syahir Hakim

    #14255

    Hurm..did the child theme’s functions.php file starts with <?php and ends with ?>?

    Tenacious

    #14256

    Sorry, I forgot to add those to the code. Everything works now, thanks a bunch!

Viewing 6 posts - 1 through 6 (of 6 total)

  • You must be logged in to reply to this topic.