Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Link in "wen associate" footer #482
    arkyannell
    Participant

    Hi, thank you so much! It works! 🙂
    Sincerely yours,
    Dan

    in reply to: Link in "wen associate" footer #472
    arkyannell
    Participant

    I didn’t understand the exact part I have to copy and past from the file core.php of the father theme to the file functions.php of my child theme.
    I see in core.php the following code:

    if( ! function_exists( 'wen_associate_footer_copyright' ) ) :
    
      /**
       * Footer copyright
       *
       * @since  WEN Associate 1.0
       */
      function wen_associate_footer_copyright(){
    
        // Check if footer is disabled
        $footer_status = apply_filters( 'wen_associate_filter_footer_status', true );
        if ( true !== $footer_status) {
          return;
        }
    
        // Copyright
        $copyright_text = wen_associate_get_option( 'copyright_text' );
        $copyright_text = apply_filters( 'wen_associate_filter_copyright_text', $copyright_text );
    
        // Footer navigation
        $footer_menu_content = wp_nav_menu( array(
          'theme_location' => 'footer' ,
          'container'      => 'div' ,
          'container_id'   => 'footer-navigation' ,
          'depth'          => 1 ,
          'fallback_cb'    => false ,
          'echo'           => false ,
        ) );
    
        ?>
        <div class="row">
    
          <?php if ( ! empty( $footer_menu_content ) || ! empty( $copyright_text ) ): ?>
            <div class="col-sm-6">
              <?php if ( ! empty( $footer_menu_content ) ): ?>
                  <?php echo $footer_menu_content; ?>
              <?php endif ?>
              <?php if ( ! empty( $copyright_text ) ): ?>
                <div class="copyright">
                  <?php echo esc_html( $copyright_text ); ?>
                </div><!-- .copyright -->
              <?php endif ?>
            </div><!-- .col-sm-6 -->
          <?php endif ?>
    
          <div class="col-sm-6 pull-right">
    
              <div class="site-info">
                <a href="<?php echo esc_url( __( 'http://wordpress.org/', 'wen-associate' ) ); ?>"><?php printf( __( 'Proudly powered by %s', 'wen-associate' ), 'WordPress' ); ?></a>
                <span class="sep"> | </span>
                <?php printf( __( 'Theme: %1$s by %2$s.', 'wen-associate' ), 'WEN Associate', '<a href="http://wenthemes.com/" rel="designer" target="_blank">WEN Themes</a>' ); ?>
              </div><!-- .site-info -->
    
          </div><!-- .col-sm-6 -->
        </div><!-- .row -->
    
        <?php
    
      }
    
    endif;
    
    add_action( 'wen_associate_action_footer', 'wen_associate_footer_copyright', 10 );
    
    if( ! function_exists( 'wen_associate_footer_goto_top' ) ) :
    
      /**
       * Go to top
       *
       * @since  WEN Associate 1.0
       */
      function wen_associate_footer_goto_top(){
    
        $go_to_top = wen_associate_get_option( 'go_to_top' );
        if ( 1 != $go_to_top ) {
          return;
        }
        echo '<a href="#" class="scrollup" id="btn-scrollup"><i class="fa fa-chevron-circle-up"></i></a>';
    
      }
    
    endif;

    Is it right? Have I to copy ALL the code and modify…what?
    Could you write me the functions.php code to insert the link in footer?
    Thank you so much.
    Dan

Viewing 2 posts - 1 through 2 (of 2 total)