• mens-rea

    (@mens-rea)


    I need help changing the footer text at the bottom of the raindrops theme.

    thank you for reading this ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author nobita

    (@nobita)

    Hi mens-rea

    Please create child theme

    example

    https://www.tenman.info/download/child-raindrops.zip

    1. Use filter example

    Add functions.php

    add_filter( 'raindrops_footer_text', 'change_footer_text' );
    
    function change_footer_text( $return_value ) {
    
    	return '<address>hello world</address>';
    }

    2. Template rewrite

    copy raindrops/footer.php

    add child-raindrops/footer.php

    line:39

    <!--footer-widget end-->
    	<?php raindrops_footer_text();?>

    remove and add your text

    Thank you.

    Thread Starter mens-rea

    (@mens-rea)

    I cant get in to the website again now, it change it fine but now im getting this message and cant see the website ?

    Warning: Cannot modify header information – headers already sent by (output started at /home/content/n3pnexwpnas01_data01/83/2921083/html/wp-content/themes/raindrops/functions.php:10584) in /home/content/n3pnexwpnas01_data01/83/2921083/html/wp-includes/pluggable.php on line 1207

    Theme Author nobita

    (@nobita)

    Maybe PHP code that was your description is wrong

    <?php
    // code start
    add_filter( 'raindrops_footer_text', 'change_footer_text' );
    
    function change_footer_text( $return_value ) {
    
    	return '<address>hello world</address>';
    }
    // code end
    /**
     *
     *
     * @package Raindrops
     * @since Raindrops 0.1
     */
    if ( !defined( 'ABSPATH' ) ) {
    	exit;
    }

    Add only between ‘code start’ to ‘code end’.

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘footer text’ is closed to new replies.