Problem to change a link in the footer
Excuse my English, I’m French and I use Google translator.
So,I’m using Graphene and I created a child theme. I managed to change the appearance of copyright in footer.php file.
I would also change the back to top link and put an image in place of the link â€“ text.
In the footer.php file, I removed this code: `<?php if ( ! $graphene_settings ) : ?>
<li class=”menu-item return-top”><a href=”#”><?php _e(‘Return to top’, ‘graphene’); ?></a></li>
<?php endif; ?>`
In place, I put the following code:
<?php if ( ! $graphene_settings['hide_return_top'] ) : ?>
<li class="menu-item return-top"><a href="#"><img src="wp-content/uploads/2013/05/fleche-haut-3.jpg" alt="Retour vers le haut" title="Remonter en haut de page" /></a></li>
<?php endif; ?>
It works on static home page and on page 404 … but not on the other pages!
You can see my site: my website about Burgundy (France)
On pages 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.
An idea to help me easily?
Just throw this to Custom Head Tags in Graphene Options –> Advanced. No need to edit any theme file.
$('.return-top a').html('<img src="http://www.mon-coin-de-bourgogne.fr/wp-content/uploads/2013/05/fleche-haut-3.jpg" alt="Return to top" />');
Restore the theme files if you’ve edited any.
Thank you for your help.
Meanwhile, I got an answer here: http://wordpress.org/support/topic/edit-a-link-in-the-footer?
It was enough to add a slash in the path to my image!
So I keep my code in the footer.php since now it works. (don’t worry, it is a theme-child)
Thank you anyway.
You must be logged in to reply to this topic.