Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #91119
    southpaw
    Participant

    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.

    #91140
    Mahesh
    Keymaster

    @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 or catchadaptive_page_slider function whichever you want to override to your child theme’s functions.php file, and then modify the code as per your requirement.

    Regards,
    Mahesh

    #91146
    southpaw
    Participant

    @mahesh,

    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_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’s functions.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.

    #91221
    Mahesh
    Keymaster

    @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,
    Mahesh

    #91443
    southpaw
    Participant

    @mahesh,

    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.

    Southpaw

    #91456
    Mahesh
    Keymaster

    @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

    Regards,
    Mahesh

    #91475
    southpaw
    Participant

    Review gladly posted. Thank you for your time.

    Southpaw

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘How do I modify catchadaptive-featured-slider.php in a child theme?’ is closed to new replies.