• Resolved Wolve

    (@wolve)


    Hi,

    I am using the Dyad Theme, that is also available to download on www.ads-software.com as mentioned in some other posts.

    I got a little problem, that is pretty annoying. I made categories for the different blog pages and everything went well, but now every time I jump through the pages, there stands: category:title
    Is it possible to make the “Category:” sign disappear? If yes, how? ??

    Greets,

    Wolve

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi there! You can definitely remove this text from Dyad, but you’ll need to create a child theme first. That way, your changes will remain intact when the theme is updated.

    First, you’ll need to create a child theme with Dyad as the parent. Then, you’ll want to create a functions.php file in that child theme, and include the following code:

    add_filter( 'get_the_archive_title', function ($title) {
    
        if ( is_category() ) {
    
                $title = single_cat_title( '', false );
    
            } elseif ( is_tag() ) {
    
                $title = single_tag_title( '', false );
    
            }
    
        return $title;
    
    });

    That should remove the “Category: ” prefix on category pages, as well as the “Tag: ” prefix on tag pages. ??

    Thread Starter Wolve

    (@wolve)

    Thank you very much for this great help. I really appreciate it!
    BTW. It worked pretty good and I am really happy thanks to your help ??

    Thread Starter Wolve

    (@wolve)

    I got a little problem. The media library doesn’t work correctly anymore.
    The uploaded pictures don’t show up anymore, but they are still there. Even fresh uploaded pictures don’t show up, after refreshing the page.

    And another thing, that I would like to ask. Is it possible to make the tag ‘written by Admin on 02/01/2016’ disappear?

    Glad to hear that’s helped!

    It sounds like your media library issue is a completely different problem. Would you mind creating that as a separate post, so it’s properly tagged & classified? ??

    This CSS should remove the posted-on information for you:

    .posted-info {
        display: none;
    }

    Cheers!

    Thread Starter Wolve

    (@wolve)

    Thank you very much, again! ??
    I will make another topic for the child theme problem,
    where the Admin CP Login doesn’t work at all.
    You were a great help to me.

    Cheers!

    You’re very welcome—have a fantastic day! ??

    Hi Sarah, I am also using Dyad and having these same issues. However, I created a child theme and it didn’t work. Any thoughts? https://www.new.fannydoolittle.com/

    Hi @pdomenico0990,

    I had a quick look through your site and can’t find a category page—this makes it a bit tricky to see what’s going on. The above solution should definitely do the trick—or you can use the Nix Prefix plugin, which does the same thing.

    However, these solutions will only work if your theme is using the get_the_archive_title() function in order to return archive titles. Dyad does this, but your child theme might use a different function.

    It’s best to post a new issue with your specific problem. This thread is already marked as resolved, so it’s less likely to be noticed by forum members. If you post the issue in a new thread, you’ll be more likely to get a good answer! ??

    Cheers!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Theme: Dyad] Make "Category:" disappear.’ is closed to new replies.