May 6, 2016 at 6:18 am #91119
I’ve tried copying catchadaptive-featured-slider.php into my child theme’s /inc directory.
I’ve tried copying it to the child theme’s top directory.
I’m seeing no evidence that it is being loaded, as it appears the catchadaptive-featured-slider.php from the parent theme directory is the one that continues to load.May 6, 2016 at 3:19 pm #91140
@southpaw: If you are trying to modify Catch Adaptive’s Featured Slider, you don’t need to copy the whole catchadaptive-featured-slider.php. Just copy
catchadaptive_page_sliderfunction whichever you want to override to your child theme’s
functions.phpfile, and then modify the code as per your requirement.
MaheshMay 6, 2016 at 5:36 pm #91146
Thank you for trying to explain this to me. I’m sure there’s some obvious step I’m ignorant of.
I want to modify only the HTML assigned to
$catchadaptive_featured_sliderin lines 46-78.
(I’ve used style.css to limit the slider to the left half of the screen, and I want to embed a calendar before </div><!– .wrapper –> of line 77 so it exists in the right half.)
Based on what you wrote above, I copied the
catchadaptive_featured_sliderfunction to my child theme’s
functions.phpfile and modified it, but I’m still seeing the original HTML from the parent theme.
Please help me understand what I’m doing wrong.May 8, 2016 at 9:38 am #91221
@southpaw: Please find the code in the link below and paste it in your
functions.php(Please remove previous slider function in your child theme).
Replace the following line in the above function with your calendar’s code.
<div class="calendar"><!-- Calendar Start --> Your Calendar Code Goes HERE!!! </div><!-- Calendar End -->
MaheshMay 11, 2016 at 6:16 am #91443
Thank you. You are very kind to write the code for me. It works beautifully.
As it turns out, there was something else of which I was ignorant. The reason I wasn’t seeing changes to my child theme’s functions.php file after ctrl-f5 refreshing the browser was that I had not deleted the cache by saving that section again in the Appearance > Customize menu. (Found that suggested here.)
Is that caching done by WordPress, or is it unique to Catch themes? I’ve not noticed it being that aggressive on other themes I’ve customized.
In any case, I love to learn something new, and I greatly appreciate your patience, your help, and this forum.
SouthpawMay 11, 2016 at 10:36 am #91456
@southpaw: Thank you for your appreciation. Glad to know that its working for you. Well, caching depends on many factors such as server caching, browser caching etc. All our theme does have caching but uses transient (which acts as caching) for better performance. These are automatically cleared as you save changes the options in customizer. Sometimes it may deny to show changes due to caching and you’ll need to full-refresh the page with ctrl+f5.
Hope you understand.
If you like my support and Catch Adaptive theme then please support by providing your valuable review and rating at https://wordpress.org/support/view/theme-reviews/catch-adaptive?rate=5#postform
MaheshMay 11, 2016 at 6:29 pm #91475
Review gladly posted. Thank you for your time.
- The topic ‘How do I modify catchadaptive-featured-slider.php in a child theme?’ is closed to new replies.