Wordpress : supprimer designed by et powered by

manchelo Messages postés 325 Date d'inscription   Statut Membre Dernière intervention   -  
manchelo Messages postés 325 Date d'inscription   Statut Membre Dernière intervention   -
Hé Bonjour :)

Encore une question sur wordpress !

Cette fois , je souhaite supprimer les mentions situées sur le footer, à savoir : designed by : Thème nom, et powered by : wordpress.

Après beaucoup de recherche sur divers forums, je me rends compte que c'est une question redondante. Hors, je ne trouve pas de solutions malgré toutes les aides indiquées.
Souvent il faut modifier le footer.php. Déjà ça n'a pas l'air d'être le cas pour mon thème Pixagraphy. Apparement je devrait plutôt trouver ma réponse dans footer-details.php.
Mais quand j'ajoute ce fichier modifié dans mon thème enfant (pixgraphy child), rien ne se passe.

Voilà le code de footer-details.php :
<?php
/**
  • @package Theme Freesia * @subpackage Pixgraphy * @since Pixgraphy 1.0 */?><?php/************************* PIXGRAPHY FOOTER DETAILS **************************************/function pixgraphy_site_footer() {if ( is_active_sidebar( 'pixgraphy_footer_options' ) ) : dynamic_sidebar( 'pixgraphy_footer_options' ); else: echo '<div class="copyright">' .'© ' . date('Y') .' '; ?> <a title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" target="_blank" href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php echo get_bloginfo( 'name', 'display' ); ?></a> | <?php esc_html_e('Designed by:','pixgraphy'); ?> <a title="<?php echo esc_attr__( 'Theme Freesia', 'pixgraphy' ); ?>" target="_blank" href="<?php echo esc_url( 'https://themefreesia.com' ); ?>"><?php esc_html_e('Theme Freesia','pixgraphy');?></a> | <?php esc_html_e('Powered by:','pixgraphy'); ?> <a title="<?php echo esc_attr__( 'WordPress', 'pixgraphy' );?>" target="_blank" href="<?php echo esc_url( 'http://wordpress.org' );?>"><?php esc_html_e('WordPress','pixgraphy'); ?></a> </div> <?php endif;}add_action( 'pixgraphy_sitegenerator_footer', 'pixgraphy_site_footer');


“J'aimerai en lieu et place ajouter : mentions légales et supprimer le copyright qui n'a pas lieu d'être en France.“

Si vous avez des solutions qui trainent et que vous ne savez pas quoi en faire, n'hésitez pas à les déposer sur la table :)

Merci à bientôt :)

2 réponses

  1. Dinath Messages postés 1697 Statut Contributeur sécurité 218
     
    Salut,

    Vire ça :

    <?php esc_html_e('Powered by:','pixgraphy'); ?> <a title="<?php echo esc_attr__( 'WordPress', 'pixgraphy' );?>" target="_blank" href="<?php echo esc_url( 'http://wordpress.org' );?>"><?php esc_html_e('WordPress','pixgraphy'); ?>


    Et remplace par ton truc ;-)

    https://agence-web.cubis-helios.com/wordpress-comment-modifier-son-theme-enfant-parent/

    A lire, tu devrais faire un thème enfant :)
    0
    1. manchelo Messages postés 325 Date d'inscription   Statut Membre Dernière intervention   5
       
      Bonjour Dinath,

      oui j'utilise un thème enfant. C'est d'ailleurs toi il me semble qui me l'avais préconisé.

      Quand je modifie ces lignes cela ne change rien.
      Peut être est ce lié au fait que le thème que j'utilise est gratuit. C'est une manière de préserver le nom de l'auteur, ce que je comprends.

      Par contre pour le copyright je n'ai pas d'idée là ?
      echo '<div class="copyright">' .'© ' . date('Y') .' '; ?>


      Pour les mentions légales c'est pareil :
       <?php esc_html_e('Mentions legales'); ?> <a title="<?php echo esc_attr__( 'Mentions legales' ); ?>" target="_blank" href="<?php echo esc_url( 'http://localhost:8888/wordpress/mentions-legales/' ); ?>"><?php esc_html_e('Mentions legales');?></a> | 


      Il faut peut être utiliser un widget footer pour placer des mentions légales en bas de page ?
      0
    2. Dinath Messages postés 1697 Statut Contributeur sécurité 218
       
      En effet ! J'avais pu que c'était toi ;-)

      Exactement.

      On va faire autrement.

      Commente ta fonction en rajoutant :

      /*

      au début, et :

      */

      à la fin.

      créé une nouvelle fonction :

      function pixgraphy_site_footer() {
      echo 'dinath';
      }

      Que vois-tu ? Pense au cache ;-)
      0
    3. manchelo Messages postés 325 Date d'inscription   Statut Membre Dernière intervention   5
       
      Est ce que ça doit donner quelque chose comme ça ?
      Je suis complètement à la ramasse là...
      <?php
      /**
      • @package Theme Freesia * @subpackage Pixgraphy * @since Pixgraphy 1.0 */?><?php/************************* PIXGRAPHY FOOTER DETAILS **************************************/function pixgraphy_site_footer() {if ( is_active_sidebar( 'pixgraphy_footer_options' ) ) : dynamic_sidebar( 'pixgraphy_footer_options' ); else: echo '<div class="copyright">' .'© ' . date('Y') .' '; ?> <a title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" target="_blank" href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php echo get_bloginfo( 'name', 'display' ); ?></a> | <?php esc_html_e('Designed by:','pixgraphy'); ?> <a title="<?php echo esc_attr__( 'Theme Freesia', 'pixgraphy' ); ?>" target="_blank" href="<?php echo esc_url( 'https://themefreesia.com' ); ?>"><?php esc_html_e('Theme Freesia','pixgraphy');?></a> | /*<?php esc_html_e('Mon site'); ?> <a title="<?php echo esc_attr__( 'Mon site' );?>" target="_blank" href="<?php echo esc_url( 'http://localhost:8888/wordpress/' );?>"><?php esc_html_e('Mon site'); ?></a>*/ <?php function pixgraphy_site_footer() {echo 'Mon site';}</a> </div> <?php endif;}add_action( 'pixgraphy_sitegenerator_footer', 'pixgraphy_site_footer');


    4. A la base le thème ‘designed by‘ s'appelle : Thème Freesia.
      La mention ‘powered by‘ : worpdress reste inchangée également.
      Les modifs ont été faites dans le fichier footer-details.php.

      Franchement, je sèche.


      Et si je modifie le fichier html ?
      <div class="copyright">© 2017   <a title="" href="http://localhost:8888/wordpress/" rel="nofollow noopener noreferrer" target="_blank"></a> | 
      Designed by: <a title="Theme Freesia" href="https://themefreesia.com" rel="nofollow noopener noreferrer" target="_blank">Theme Freesia</a> |
      Powered by: <a title="WordPress" href="http://wordpress.org" rel="nofollow noopener noreferrer" target="_blank">WordPress</a>
      </div>


      Encore faut-il que j'ai un fichier html et de plus ça ne fera pas parti du thème enfant j'imiagine donc ce serait à modifier à chaque mise à jour...

      C'est en train de me rendre fou ! :)
0
  • manchelo Messages postés 325 Date d'inscription   Statut Membre Dernière intervention   5
     
    et voilà ce que contient le fichier footer.php :
    <?php
    /**
    • The template for displaying the footer. * * @package Theme Freesia * @subpackage Pixgraphy * @since Pixgraphy 1.0 */$pixgraphy_settings = pixgraphy_get_theme_options();if($pixgraphy_settings['pixgraphy_photography_layout'] == 'photography_layout' && !is_page() && !is_single()){ if( is_404() || is_search() || is_archive()): if($pixgraphy_settings['pixgraphy_photography_layout'] == 'photography_layout'){ if(class_exists('WooCommerce') && (is_shop() || is_product_category())){ ?> </div> <!-- end .container --> <?php }else{ if(is_404()){ ?> </div> <!-- end .container --> <?php } // silence is golden } }else{?> </div> <!-- end .container --> <?php } else: ?> </div> <!-- end #main --> <?php endif;}else{?></div> <!-- end .container --><?php} ?></div> <!-- end #content --><!-- Footer Start ============================================= --><footer id="colophon" class="site-footer clearfix"><?phpif(class_exists('Pixgraphy_Plus_Features')){ do_action('pixgraphy_footer_column');} ?><div class="site-info" <?php if($pixgraphy_settings['pixgraphy-img-upload-footer-image'] !=''){?>style="background-image:url('<?php echo esc_url($pixgraphy_settings['pixgraphy-img-upload-footer-image']); ?>');" <?php } ?>> <div class="container"> <?php if(!empty($pixgraphy_settings['pixgraphy-footer-logo']) || !empty($pixgraphy_settings['pixgraphy-footer-title'])):?> <div id="site-branding"> <?php if(!empty($pixgraphy_settings['pixgraphy-footer-title'])): ?> <h2 id="site-title"> <a href="<?php echo esc_url($pixgraphy_settings['pixgraphy-footer-link']);?>" title="<?php echo esc_html($pixgraphy_settings['pixgraphy-footer-title']);?>"><?php echo esc_html($pixgraphy_settings['pixgraphy-footer-title']);?></a> </h2> <!-- end #site-title --> <?php endif; ?> </div> <!-- end #site-branding --> <?php endif; if($pixgraphy_settings['pixgraphy_buttom_social_icons'] == 0): do_action('social_links'); endif; if(class_exists('Pixgraphy_Plus_Features')){ do_action('pixgraphy_footer_menu'); } do_action('pixgraphy_sitegenerator_footer'); ?> <div style="clear:both;"></div> </div> <!-- end .container --> </div> <!-- end .site-info --> <?php $disable_scroll = $pixgraphy_settings['pixgraphy_scroll']; if($disable_scroll == 0):?> <div class="go-to-top"><a title="<?php esc_html_e('Go to Top','pixgraphy');?>" href="#masthead"><i class="fa fa-angle-double-up"></i></a></div> <!-- end .go-to-top --> <?php endif; ?></footer> <!-- end #colophon --></div> <!-- end #page --><?php wp_footer(); ?></body></html>