Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi there,

    can you share the PHP snippet you’re adding to your site?

    Please make sure after pasting the code in your reply, that you highlight it and click the code button to preserve its formatting.

    Thread Starter Ruma Dey Baidya

    (@holidaystory17)

    Error:- Unable to communicate back with site to check for fatal errors, so the PHP change was reverted. You will need to upload your PHP file change by some other means, such as by using SFTP.

    Bellow is my funtion.php file
    _____________________________
    <?php
    /*This file is part of gptheholiBN, generatepress child theme.

    All functions of this file will be loaded before of parent theme functions.
    Learn more at https://codex.www.ads-software.com/Child_Themes.

    Note: this function loads the parent stylesheet before, then child theme stylesheet
    (leave it in place unless you know what you are doing.)
    */

    if ( ! function_exists( ‘suffice_child_enqueue_child_styles’ ) ) {
    function gptheholiBN_enqueue_child_styles() {
    // loading parent style
    wp_register_style(
    ‘parente2-style’,
    get_template_directory_uri() . ‘/style.css’
    );

    wp_enqueue_style( ‘parente2-style’ );
    // loading child style
    wp_register_style(
    ‘childe2-style’,
    get_stylesheet_directory_uri() . ‘/style.css’
    );
    wp_enqueue_style( ‘childe2-style’);
    }
    }
    add_action( ‘wp_enqueue_scripts’, ‘gptheholiBN_enqueue_child_styles’ );

    /*Write here your own functions */

    add_filter( ‘generate_copyright’,’tu_custom_copyright’ );
    function tu_custom_copyright() {
    ?>
    Your new message in here. You can add anything you want, including PHP and HTML.
    <?php
    }

    Leo

    (@leohsiang)

    Can you try activating the parent theme and add the code using the Code Snippets method to test?
    Adding PHP: https://docs.generatepress.com/article/adding-php/

    Thread Starter Ruma Dey Baidya

    (@holidaystory17)

    Ya, it’s warking with codesnippet+childtheme, But I need to use an extra plugin for that. Anyway thanks.

    Leo

    (@leohsiang)

    No problem ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Unable to change footer credit’ is closed to new replies.