[ColorMag WordPress Theme] How To Remove Unwanted Tags

ColorMag WordPress Theme updated and some users found that some tags appear under the title, so here’s the tutorial to remove it.

What is Wrong?

A ColorMag WordPress Theme user raised a question:

How can I remove the one marked in red?

ColorMag WordPress Theme unwanted tags

The page I need help with: https://militarizm.su/

(@militarizm72)

How to Solve It?

Method one:

Add the following CSS to the theme and that part in circle will disappear:

.cm-tag-links {display: none;}

And here is a detailed explanation of how to add custom CSS to WordPress.

Method Two:

If you know how to modify the theme, try go to “\colormag\inc\template-tags.php”

and turn these lines:

if ( ! function_exists( 'colormag_tags_meta_markup' ) ) :

	/**
	 * Prints post meta markup tags.
	 *
	 * @return void
	 */
	function colormag_tags_meta_markup() {
		$tags_list = get_the_tag_list( '<span class="cm-tag-links"' . '>' . colormag_get_icon( 'tag', false ) . ' ', __( ', ', 'colormag' ), '</span>' );

		if ( $tags_list ) {
			echo $tags_list; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
		}
	}

endif;

into

//if ( ! function_exists( 'colormag_tags_meta_markup' ) ) :

	/**
	 * Prints post meta markup tags.
	 *
	 * @return void
	 */
	//function colormag_tags_meta_markup() {
		//$tags_list = get_the_tag_list( '<span class="cm-tag-links"' . '>' . colormag_get_icon( 'tag', false ) . ' ', __( ', ', 'colormag' ), '</span>' );

		//if ( $tags_list ) {
			//echo $tags_list; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
		}
	}

//endif;

Feel free to leave me a comment. I’d be happy to provide some CSS code and show you where to add it. Please give me a link to your site so I can take a look directly, and point me to exactly where on your site you’re looking to make the changes, as there are multiple places where blog posts and widgets might be displayed, and it’ll be much better if we can look at it directly.

Support My Work

If you enjoy my content, consider buying me a coffee or shopping through my Rakuten link to support me!

Victor

Founder of WPUtopia.com🕵️I would appreciate it if you could leave me a comment!

  1. I use 1 method, partially its work. 2-nd method give me critical site error.
    Write me if possible remove Author, Date and, especially, Comments.

    Also I need relocate article Head to upper, it possible?

    https://militarizm.su/wp-content/uploads/Screenshot2.png

    Before updating the theme, the site logo was the full width of the page, now the logo is small on the left (I use a 1920×300 file). Is it possible to fix it?

    https://militarizm.su/wp-content/uploads/Screenshot4.png

    Regards

    1. Hi militarizm,
      yes, it is possible by adding this CSS to remove Author, Date and the comments:
      .cm-below-entry-meta{display:none;}
      If you want to show the full length of the header picture, you can use this CSS:
      .cm-header-col-1{flex-basis: 100%;}

  2. Victor, thank You very much for help!

    My last question about site text . Early in ColorMag I am add in Custom CSS some lines (marked red), but in 3.0 this not work. Today picture caption is bigger then main text. Text not have intend, not justify and small 🙁 in all articles.

    https://militarizm.su/wp-content/uploads/Screenshot17.png

    https://militarizm.su/wp-content/uploads/Screenshot14.png

    Can I change all articles text view to my standart view:

    https://militarizm.su/wp-content/uploads/Screenshot15.png

    1. Hi @militarizm, As for the “not working” CSS, replace the code in the red circle with this:
      .cm-entry-summary p{text-align: justify;text-indent: 20px;}
      Here is how to change the articles text view to your standard view (I don’t have the detailed data such as the font size of your previous version so I have to use my eyeball to decide ):
      .cm-entry-summary p{font-size: 2rem;}

  3. Thank You, Your code work very good. Only caption I use from wordpress.org forum, modified to rem:

    .wp-caption .wp-caption-text {
    font-size: 1.5rem;
    }
    .cm-tag-links {display: none;}
    .cm-below-entry-meta{display:none;}
    .cm-header-col-1{flex-basis: 100%;}
    .cm-entry-summary p{text-align: justify;text-indent: 20px;}
    .cm-entry-summary p{font-size: 2rem;}
    .cm-entry-summary p{line-height: 1.5;}

    1. No problem. If you found my content helpful, I’d greatly appreciate if you could reference my site 🔗 or give attribution. Getting credit for my work is the best reward . Thank you for considering, and I’m glad I could provide useful information! 😄

  4. 1. About wrong order in categories/tag-“pages” and so on, it was reported before. I think the developers don’t really know where they’ve made a mess… At least I didn’t noticed this problem mentioned in the list of fixes in the last, 3.0.4, update. So, we’ll wait.

    2. About the images with the caption, the original ColorMag had a border around the image with caption (ugly one in comparison with other themes). Now this border is gone. Anybody knows CSS code to get it back? And perhaps, to make it better?

    1. Hi Veta, I can help with the second one. I’d be happy to provide some CSS code and show you where to add it. Please give me a link to your site so I can take a look directly, and point me to exactly where on your site you’re looking to make the changes, as there are multiple places where blog posts and widgets might be displayed, and it’ll be much better if we can look at it directly.

Reply to DoctorBR Cancel reply

Chat with me

Start a Conversation

Hi! Let's connect on your preferred platform.