WordPress.org

Forums

Vantage
Few Problems (5 posts)

  1. marklock
    Member
    Posted 1 year ago #

    Hi,

    Thanks for a great theme - was looking for something elegant and professional and suited me to a tee!

    Having a few problems, if you could point me in the right direction.

    1/ I would like to remove the text "Category Archives: " - I couldn't find this in archive.php - where is it hiding to remove?
    2/ Menu items for categories is behaving a bit odd, it keeps prefixing with /category/ even though I have changed the permalinks i.e. I have /testimonials/ which is the category which works, but the menu always prefixes it with /category/ - if that makes sense? Worst case I just make custom URLs for the menu items.
    3/ Final thing, where can I find the "Posted on" text for posts to remove?

    Many thanks, keep up the great work!

  2. Greg Priday
    Member
    Theme Author

    Posted 1 year ago #

    Hi there Mark

    1) The line you're looking for is line 226 of inc/template-tags.php. Ideally though, you shouldn't edit theme files directly. You can use the vantage_archive_title filter to change the title to something better. The following would work in your child theme.

    function mytheme_vantage_archive_title($title){
        if ( is_category() ) {
            $title = single_cat_title( '', false );
        }
        return $title;
    }
    add_filter('vantage_archive_title', 'mytheme_vantage_archive_title');

    2) Do you have a URL where I can take a look at what's going on?

    3) This is a theme option. Navigate to Appearance > Theme Settings. Under the Blog tab, disable "Post Date".

  3. marklock
    Member
    Posted 1 year ago #

    Hi Greg,

    Many thanks, re: 3) completely missed that option, duh!

    I have set-up a child theme, I see where the text is now on 226, so I need to copy inc/template-tags.php to my child and replace with the above?

    Don't have a URL as of yet as working on it locally.

    Many, many thanks for your help.

  4. marklock
    Member
    Posted 1 year ago #

    Hi Greg,

    To which file will I add the code?

    function mytheme_vantage_archive_title($title){
        if ( is_category() ) {
            $title = single_cat_title( '', false );
        }
        return $title;
    }
    add_filter('vantage_archive_title', 'mytheme_vantage_archive_title');

    I have tried taking a copy of inc/template-tags.php and putting it in my child theme which it ignores the changes.

    Obviously works fine if I edit in the main theme file, but will be overwritten with any updates.

    Thanks, Mark.

  5. Greg Priday
    Member
    Theme Author

    Posted 1 year ago #

    You should be able to add that to your child theme's functions.php. As soon as I find a little time, I'll throw together a skeleton child theme. My guess is something like this will come in handy.

    I'll post a link here as soon as I've had a chance.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.