WordPress.org

Ready to get started?Download WordPress

Forums

[Theme: Simple Catch] How to override simplecatch_functions.php? (2 posts)

  1. Papijon
    Member
    Posted 1 year ago #

    Hey lads,

    I'm a little new to wordpress as such but did manage to
    create a child-theme for simple-catch and edited the way
    the date was displayed and removed the author and comments-info
    from the post-info in content.php and image.php.

    But the third file where the code for that exists and is obviously
    used by wordpress to render the single-post-layout will just not
    accept my changes. I found simplecatch_functions.php and copied it
    to my child-theme directory trying two different paths:

    first) themes/simple-catch-custom/simplecatch_functions.php
    then) themes/simple-catch-custom/functions/simplecatch_functions.php

    Prior to that, I edited the simplecatch_functions.php to my needs (as in content.php and image.php) and uploaded it.

    Is it normal that no override is taken with this file? Do I have to change a redirect somewhere else? Is it just not possible? How else can I take effect on the way a single post is displayed without bothering with future updates of the theme?

    Thank you guys for any hints, I'm becoming desperate here..

  2. Papijon
    Member
    Posted 1 year ago #

    Any ideas, boys and girls?

    Can't I just add some more-important functions to the child-themes functions.php ? I think I understood, that I'd have to do something with the simplecatch_loop(), which is displaying posts. Within that function lies the code of my interest. Can't I tell wordpress to use my modified loop in the functions.php instead?

    Don't know anything substancial about hooks and such, perhaps someone could give a hint and help?

    Thanks in advance,
    cheers!

Topic Closed

This topic has been closed to new replies.

About this Topic