Post title removal Menu orientation

Latest Reply from Dave at 2015-11-24 04:23:14
Hi,

I have created a site using wpcartoon theme. I want to align the main menu centre and remove the category title from the post. Can you please help me out in these two things?
Hi!

To make these changes you need to edit style.css. Find the 411th line:
#mainmenu li {
position:relative;
margin-top:-4px;
}

and replace it with:
#mainmenu li {
position:relative;
margin-top:-4px;
float: none;
display: inline-block;
}

Besides, you need to add the code:
#mainmenu{
text-align: center;
}
to the style.css file.
To remove category from the post you need to delete the code:
<img src='<?php echo get_template_directory_uri();?>/images/smt/category.png' alt='Categories' /> &nbsp;<?php the_category(', '); 
from the theloop.php file located in the directory of the theme on your server.

Leave a reply

Add codeAdd image