Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #96757
    mayapour
    Participant

    Hello,

    After activate un child theme of Catch Responsive (free version), I need ti add a link and a name in the footer of this child theme.

    I add this code in the functions.php but it doesn’t work :

    <?php
    /**
    * Child Theme functions and definitions
    *
    */

    /**
    * Loading Parent theme stylesheet
    *
    */
    add_action( ‘wp_enqueue_scripts’, ‘catchbox_child_enqueue_styles’ );
    function catchbox_child_enqueue_styles() {
    wp_enqueue_style( ‘catchbox-parent-style’, get_template_directory_uri() . ‘/style.css’ );
    }

    function catchflames_child_footer_content() {
    //catchflames_flush_transients();
    if ( ( !$catchflames_footer_content = get_transient( ‘catchflames_footer_content’ ) ) ) {
    echo ‘<!– refreshing cache –>’;

    $catchflames_content = catchflames_();

    $catchflames_footer_content = ‘
    <div id=”site-generator”>
    <div class=”wrapper”>
    <div id=”custom-links”>
    Data Link |
    Cookie Link
    </div>
    <div id=”footer-content” class=”copyright”>’
    . $catchflames_content[‘left’]
    . ‘ | ‘
    . $catchflames_content[‘right’] .
    ‘</div>
    </div><!– .wrapper –>
    </div><!– #site-generator –>’;

    set_transient( ‘catchflames_footer_content’, $catchflames_footer_content, 86940 );
    }

    echo $catchflames_footer_content;
    }

    add_action( ‘init’, ‘catchflames_child_add_links_in_footer’ );

    function catchflames_child_add_links_in_footer() {
    remove_action( ‘catchflames_footer’, ‘catchflames_footer_content’, 100 );
    add_action( ‘catchflames_footer’, ‘catchflames_child_footer_content’, 100 );
    }

    Can you help me ?

    #96777
    Mahesh
    Participant
    #96780
    mayapour
    Participant

    Hello and Thank you for your help.

    Before I contact you I’ve followed every step of this link.
    Maybe I’ve missed something ?

    Sorry but I’m a binginner.
    Should I replace my functions.php code by your exemple and only that ?
    When I try, it makes no difference …

    Thank you for your patience.

    #96795
    Mahesh
    Participant

    @mayapour: The code is working fine. May be cache/transient problem. Please uncomment //catchresponsive_flush_transients(); line in the above code and check again. Please comment the line again.

    Regards,
    Mahesh

    #96887
    mayapour
    Participant

    Hello Mahesh,

    Thank you for your help. I dit it : uncomment / empty cache/ check / comment / empty cache/ check …
    But it didn’t change anything 🙁

    Regards,

    Mc

    #96911
    mayapour
    Participant

    Thank you, I start it again : problem solved 🙂

    #96968
    Mahesh
    Participant

    @mayapour: Glad to know your problem is resolved. Thank you for your appreciation. If you like my support and Catch Responsive theme then please support by providing your valuable review and rating at https://wordpress.org/support/view/theme-reviews/catch-responsive?rate=5#postform

    Regards,
    Mahesh

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Link in the footer’ is closed to new replies.