- This topic has 2 replies, 2 voices, and was last updated 4 years, 4 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- The topic ‘Up to the top’ is closed to new replies.
Home › Forums › Cordero Pro › Up to the top
The individual pages are very long, especially on mobile devices. Therefore I would like to add an “up to the top” in the footer.
I use a child theme and add in footer.php:
” class=”tothetop”><?php _e( ‘Up’, ‘cordero’ ); ?> ↑
I did this in the following place and it inexplicably looks very good, but of course, it doesn’t work. Maybe I have to adjust the header.php too.
<?php
$footer_layout = get_theme_mod( ‘footer_layout’, ” );
if ( $footer_layout === ‘info-right’ || $footer_layout === ‘centered-info-below’ ) {
cordero_powered_by();
}
?>
” class=”tothetop”><?php _e( ‘Up’, ‘cordero’ ); ?> ↑
Do you have a solution for me?
Kind regards, lisia
You don’t need to add anything to the header.php file.
Your code in the footer, try this:
<a href="#page" class="tothetop"><?php _e( 'Up', 'cordero' ); ?> ↑</a>
Hello Andy!
Very fine. This is working perfectly. Thank you very much. Best regards, lisia