Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #85436
    husker
    Participant

    I want to add some CSS code to my footer, so I can log in quicker from my devices.

    Which Template PHP do I use to do so?

    Thanks

    #85470
    Mahesh
    Keymaster

    Hi @husker,

    I don’t quite get you what you meant. Can you please describe further. For CSS you can use theme’s Custom CSS box.

    Regards,
    Mahesh

    #85496
    husker
    Participant

    I use a Child Theme and my additions are not showing up on what I add to Footer.php or default-options.php

    I want to add some addition text with what is shown below by default.

    Copyright © 2016 Bay Area Huskers. All Rights Reserved. | Catch Responsive by Catch Themes

    #85532
    husker
    Participant

    I have tried to add CSS to my Child Theme default-options.php and catchresponsive-core.php templates with no success showing on my site.

    I can modify CSS in the main Theme templates and see changes. All my child theme style sheet changes are reflected on my site?

    bayareahuskers.org/wp

    Here is my Child Theme functions.php template

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

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

    Is this correct?

    Brian

    #85563
    Mahesh
    Keymaster

    Hi @husker,

    1. Footer Content
    I recommend you to upgrade to Catch Responsive Pro. This feature is available in Pro version by default. You can change the footer text content to your desired content.
    But if you prefer to have it in free version. You’ll need to do some customization. You have to override this function (catchresponsive_footer_content).

    2. The code in functions.php above will enqueue the styles from parent theme to the child theme. And it is correct. Did you mean the some or you mean something different?
    Let me know if any problem.

    Regards,
    Mahesh

    #85582
    husker
    Participant

    As A test, I tried to just add a 3 in front of ‘All Rights Reserved’ on the main theme on main Theme default-options.php and I could not even get that to work?

    Where do you add simple text in free version?

    Brian

    #85614
    Mahesh
    Keymaster

    Hi @husker,

    In your child theme’s functions.php, add the following code.

    function catchresponsive_child_footer_content() {
    	//catchresponsive_flush_transients();
    	if ( ( !$catchresponsive_footer_content = get_transient( 'catchresponsive_footer_content' ) ) ) {
    		echo '<!-- refreshing cache -->';
    
    		$catchresponsive_content = catchresponsive_get_content();
    		$custom_text = 'Some custom text';
    
    		$catchresponsive_footer_content =  '
        	<div id="site-generator">
        		<div class="wrapper">
        			<div id="footer-content" class="copyright">'
        				. $catchresponsive_content['left'] . ' ' . $custom_text
        				. ' | '
        				. $catchresponsive_content['right'] .
        			'</div>
    			</div><!-- .wrapper -->
    		</div><!-- #site-generator -->';
    
        	set_transient( 'catchresponsive_footer_content', $catchresponsive_footer_content, 86940 );
        }
    
        echo $catchresponsive_footer_content;
    }
    
    add_action( 'init', 'catchresponsive_child_modify_footer' );
    
    function catchresponsive_child_modify_footer() {
    	remove_action( 'catchresponsive_footer', 'catchresponsive_footer_content', 100 );
    	add_action( 'catchresponsive_footer', 'catchresponsive_child_footer_content', 100 );
    }

    Note: Please find and edit the following line in the above code and replace the text with your desired text.
    $custom_text = 'Some custom text';

    Regards,
    Mahesh

    #85852
    husker
    Participant

    I added the above code as you provided. I replaced ‘Some Custom Text’ with Bay Area Huskers and my random text did not show up after updating the functions.php child theme file.

    All I still see is the default Footer. I should see Bay Area Huskers twice, correct?

    Copyright © 2016 Bay Area Huskers. All Rights Reserved. | Catch Responsive by Catch Themes

    bayareahuskers.org/wp/

    Brian

    #85966
    Mahesh
    Keymaster

    Hi @husker,

    Just checked your site, seems you’ve managed to change the footer content.
    Have a nice day!

    Regards,
    Mahesh

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Footer Addition’ is closed to new replies.