Home Forums Cordero Pro Up to the top

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #11942
    lisia
    Participant

    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’ ); ?> &uarr;

    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’ ); ?> &uarr;

    Do you have a solution for me?

    Kind regards, lisia

    #11944
    Andy
    Keymaster

    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' ); ?> &uarr;</a>

    #11945
    lisia
    Participant

    Hello Andy!

    Very fine. This is working perfectly. Thank you very much. Best regards, lisia

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Up to the top’ is closed to new replies.