Categories
Wordpress

Ajouter un bouton Haut de Page avec WordPress

Objectif:

Rajouter un bouton “Haut de Page” en bas de page afin de faciliter la naviguation.

Solution:

  • Ouvrir footer.php
  • Ajouter le code suivant (Après la balise #site-generator par exemple)

[fusion_builder_container hundred_percent=”yes” overflow=”visible”][fusion_builder_row][fusion_builder_column type=”1_1″ background_position=”left top” background_color=”” border_size=”” border_color=”” border_style=”solid” spacing=”yes” background_image=”” background_repeat=”no-repeat” padding=”” margin_top=”0px” margin_bottom=”0px” class=”” id=”” animation_type=”” animation_speed=”0.3″ animation_direction=”left” hide_on_mobile=”no” center_content=”no” min_height=”none”]

 <!-- #site-generator -->
<a id="back-link" title="<?php esc_attr_e( 'Haut de page', 'twentyten' ); ?>" href="#access">
     ↑ ', 'twentyten' ); ?>
</a>

[/fusion_builder_column][/fusion_builder_row][/fusion_builder_container]

Leave a Reply

Your email address will not be published. Required fields are marked *