- This topic has 8 replies, 2 voices, and was last updated 8 years, 2 months ago by Mahesh.
-
AuthorPosts
-
February 15, 2016 at 5:54 am #85436huskerParticipant
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
February 15, 2016 at 1:54 pm #85470MaheshKeymasterHi @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,
MaheshFebruary 15, 2016 at 9:19 pm #85496huskerParticipantI 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
February 16, 2016 at 3:44 am #85532huskerParticipantI 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
February 16, 2016 at 4:58 pm #85563MaheshKeymasterHi @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,
MaheshFebruary 16, 2016 at 7:54 pm #85582huskerParticipantAs 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
February 17, 2016 at 9:35 am #85614MaheshKeymasterHi @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,
MaheshFebruary 20, 2016 at 12:18 pm #85852huskerParticipantI 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
February 22, 2016 at 11:01 am #85966 -
AuthorPosts
- The topic ‘Footer Addition’ is closed to new replies.