• Resolved htct

    (@htct)


    Hi, our website is: https://www.housesittingtailscyclingtrails.com
    We are using Enigma/Inferno.
    When you go to one of the page headings, specifically ‘Housesitting Tails’ and ‘Cycling Trails’, then go to one of the Australian States in the side menu ie. New South Wales, Victoria etc., the title that comes up on the page is ‘category archives:New South Wales (or whichever State you click on), same with clicking on a specific month, it shows as :’Monthly archives: October 2017.
    We only want these to show as ‘New South Wales’ or ‘October 2017’, without the words ‘category archives’.
    I have tried a few suggestions from other forums, but I think I need something specific to this theme/child theme?
    Thanks in advance.
    Kay

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hii htct,

    Sorry for the delay.

    Firstly go to your enigma theme and copy category.php, archive.php files and paste it into inferno theme directory –

    Now go to inferno theme directory and open category.php and see the below code at line no. 7

    <h1><?php printf( __( 'Category Archives: %s', 'enigma' ), '<span>' . single_cat_title( '', false ) . '</span>' ); ?>

    replace it with below code and save the file –

    <h1><?php printf( __( '%s', 'enigma' ), '<span>' . single_cat_title( '', false ) . '</span>' ); ?>

    now open archive.php file and see the below code at line no. 10

    printf( __( 'Monthly Archives: %s', 'enigma' ), '<span>' . get_the_date( _x( 'F Y', 'monthly archives date format', 'enigma' ) ) . '</span>' );

    replace it with below code and save the file –

    printf( __( '%s', 'enigma' ), '<span>' . get_the_date( _x( 'F Y', 'monthly archives date format', 'enigma' ) ) . '</span>' );

    Thanks.

    Thread Starter htct

    (@htct)

    Thank you and I’m so sorry for the long delay.
    I have not edited the themes before, so are you able to tell me how I create a category.php and an archive.php in the Inferno theme please? I have tried to research how to do this, but methods seem to use an ftp or a plugin and I’m not sure if there is a simpler way?
    Regards
    Kay

    Hello htct,

    You don’t need to create them, just need to copy both files from the enigma parent theme and paste them into the inferno theme folder.

    Thanks.

    Thanks Weblizar!!

    I Went directly to my Server>Themes>Category.php and deleated the Category Archives text and …DONE! I bet many people have this issue..
    Best regards,
    Rick

    Thread Starter htct

    (@htct)

    My apologies, I simply do not understand where to paste the code? I have copied the text from the category.php and archive.php files and changed the code, but I do not understand where/how I paste the code in the Inferno theme ie.the Inferno theme directory/folder, where exactly is this?
    Under the theme files, I have files such as style.css, functions.php etc., but I don’t think I paste the code into these fields? Could you direct me to the correct area please?

    Theme Author weblizar

    (@weblizar)

    Hello @htct;

    Please Contact me here

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Remove ‘category archives’, but retain title’ is closed to new replies.