Tagged: child theme, featured slider
- This topic has 6 replies, 2 voices, and was last updated 8 years, 7 months ago by southpaw.
-
AuthorPosts
-
May 6, 2016 at 6:18 am #91119southpawParticipant
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 #91140MaheshParticipant@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_demo_slider
orcatchadaptive_page_slider
function whichever you want to override to your child theme’sfunctions.php
file, and then modify the code as per your requirement.Regards,
MaheshMay 6, 2016 at 5:36 pm #91146southpawParticipantThank 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_slider
in 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_slider
function to my child theme’sfunctions.php
file 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 #91221MaheshParticipant@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).
http://goo.gl/NhkX9z
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 -->
Regards,
MaheshMay 11, 2016 at 6:16 am #91443southpawParticipantThank 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.
Southpaw
May 11, 2016 at 10:36 am #91456MaheshParticipant@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#postformRegards,
MaheshMay 11, 2016 at 6:29 pm #91475southpawParticipantReview gladly posted. Thank you for your time.
Southpaw
-
AuthorPosts
- The topic ‘How do I modify catchadaptive-featured-slider.php in a child theme?’ is closed to new replies.