footer template back-to-top
-
Hi All,
I know I’m diving into dangerous waters but survived so far. I am creating child theme templates for Landing Pages. The purpose is to add a new selector (mylanding-page) into my child theme so I can customize all landing pages with a single selector instead of using the page-id-nnn approach.
1) I created header-mylanding-page.php as a copy of header.php and changed line
<body <?php body_class(); ?>>
to
<body <?php body_class( 'mylanding-page'); ?>>
.2) Created mylanding-page.php as a copy of page.php and edited it as follows:
<?php /* Template Name: mylanding-page */ ?> <?php get_header('mylanding-page'); ?> <?php hu_get_content('tmpl/page-tmpl'); ?> <?php get_sidebar(); ?> <?php get_footer(); ?>
Everything works OK except for the back-to-top arrow in footer.
Theme footer.php template manages this with the following code:
<a id="back-to-top" href="#"><i class="fa fa-angle-down"></i></a>
I guess there is some simple issue with the page id when customizing templates but I don’t know what is it and how to fix it. Please help!
Cheers,
Darío
- The topic ‘footer template back-to-top’ is closed to new replies.