Tagged: Advanced Customization
-
AuthorPosts
-
May 6, 2021 at 4:10 pm #37371BrandyGuest
I accidentily deleted the code for the WP Scroll to Top that goes in the footer theme editor. Please, can someone just write it back down for me? It doesn’t matter what the settings are, I just need the call to action. This is what I have so far:
<div id=”footer-2″ class=”pt-3 pb-3″>
<div class=”copyright container”>
<?php if( get_theme_mod( ‘marketing_agency_footer_scroll’,true) != ” || get_theme_mod( ‘marketing_agency_resp_scroll_top_hide_show’,true) != ”) { ?>
<?php $marketing_agency_theme_lay = get_theme_mod( ‘marketing_agency_scroll_top_alignment’,’Right’);
if($marketing_agency_theme_lay == ‘Left’){ ?>
<i class=”fas fa-long-arrow-alt-up p-3 rounded-circle”></i><span class=”screen-reader-text”><?php esc_html_e( ‘Scroll Up’, ‘marketing-agency’ ); ?></span>
<?php }else if($marketing_agency_theme_lay == ‘Center’){ ?>
<i class=”fas fa-long-arrow-alt-up p-3 rounded-circle”></i><span class=”screen-reader-text”><?php esc_html_e( ‘Scroll Up’, ‘marketing-agency’ ); ?></span>
<?php }else{ ?>
<i class=”fas fa-long-arrow-alt-up p-3 rounded-circle”></i><span class=”screen-reader-text”><?php esc_html_e( ‘Scroll Up’, ‘marketing-agency’ ); ?></span>
<?php }?>
<?php }?>
<div id=”wpfront-scroll-top-container” style=”opacity: 0.5; right: 20px; bottom: 20px; display: block;”>
<style=”opacity: 0.5; right: 20px; bottom: 20px; display: block;”>
</style>
</div>
</div>May 6, 2021 at 4:12 pm #37376BoldGrid SupportKeymasterHi Brandy, thanks for contacting BoldGrid support, and thanks for using the BoldGrid WordPress Website builder. I went to your site and it appears the scroll to top feature is working. Where you able to resolve it on your own or was there something else you’d like us to look into?
Thanks,
Nicole -
AuthorPosts
- The topic ‘Footer Scroll-to-Top PHP’ is closed to new replies.