[resolved] edit a link in the footer (5 posts)

  1. flobogo
    Posted 2 years ago #

    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?

  2. Aditya Pandey
    Posted 2 years ago #

    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; ?>
  3. flobogo
    Posted 2 years ago #

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

  4. sunquesdagod
    Posted 2 years ago #

    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.

  5. flobogo
    Posted 1 year ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic