Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Tony Archambeau

    (@funnycat)

    Hi mdxclr,
    you can hide the title using such a shortcode :
    [wp_sitemap_page display_title="false"]
    I hope it will help you.
    Sincerely,
    Tony

    Very fast solution in case you use a translation: Edit the language file entry and translate
    ‘Category: %1$s’
    with ‘%1$s’

    Hi Tony
    This doesn’t work for me. Yes, it removes the titles ‘Pages’ and ‘Posts by Category’, but I want the word ‘Category’ to be removed from in front of every category heading. Eg:

    Category: Other
    Category: Animals
    Category: Health

    So that it only has the headings
    Other
    Animals
    Health.

    Is this possible please?

    Thanks
    Karen
    https://elated.co.za/wp-sitemap/

    Krystof

    (@krystof-stulc)

    You could edit file wp-content/plugins/wp-sitemap-page/wp-sitemap-page.php.
    Find this piece of code:

    foreach ($nav as $page) {
    		$html .= "\t".'<li><strong class="wsp-category-title">'
    			.sprintf( __('Category: %1$s', 'wp_sitemap_page'), '<a href="'.get_category_link($page->cat_ID).'"'.$attr_nofollow.'>'.$page->name.'</a>' )
    			.'</strong>'."\n";

    And replace word Category
    .sprintf( __(‘Category: %1$s’, ‘wp_sitemap_page’),

    with whatever you wish.

    Beware, you will lose this with each plugin update.

    Thanks Krystof! Sorry for the late reply. Yes that does work perfectly

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Hide word "Category"’ is closed to new replies.