Support » Theme: Graphene » edit a link in the footer

  • Resolved flobogo

    (@flobogo)


    hello. I’m using Graphene and I created a child theme.
    I would like to change the “return to top” link in the footer and put an image in place of the link – text.
    So, I tried the following code in footer.php:

    <?php if ( ! $graphene_settings['hide_return_top'] ) : ?>
                <li class="menu-item return-top"><a href="#"><img src="wp-content/uploads/2013/05/arrow-top.jpg" alt="to top" title="Return to top" /></a></li>
                <?php endif; ?>

    My code works on static home page and on 404 page … but not on the others!
    where my code doesn’t work, there is the call to the function do_action (‘graphene_loop_loop_footer’) but I don’t know how to get or how to change this.
    You can see on my website about Burgundy (France) –> it’s OK on the footer of home page, but not on others pages.
    An idea to help me easily?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Put a slash before image location.
    Corrected code:

    <?php if ( ! $graphene_settings['hide_return_top'] ) : ?>
                <li class="menu-item return-top"><a href="#"><img src="/wp-content/uploads/2013/05/arrow-top.jpg" alt="to top" title="Return to top" /></a></li>
                <?php endif; ?>

    It’s perfect, it works!
    It was simple, but a big thank to you!

    I am trying to edit my footer to read my site policies with hyperlinks using this theme. I saw a website here that does it. How do you do this?

    Please help.

    Hello,
    You can start by making changes in the settings in “appearance”> “Options Graphene”, then in the “General” tab looking “footer options”
    Then, if that is not enough, you will need to modify the footer.php file
    Good luck

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘edit a link in the footer’ is closed to new replies.