WordPress.org

Ready to get started?Download WordPress

Forums

Post Title Color
Header menu getting colored (2 posts)

  1. SqTH
    Member
    Posted 2 years ago #

    Hello,

    I'm not very used to use WordPress, so I'll try to be as clear as possible.

    I'm editing a website recently updated.
    I've installed sussessfuly youp plugin, works quite well on every title BUT when I color the first title displayed, the navigation gets colored too.

    The header's menu seems to be atypic :

    <div id="pagesmenu">
    	<ul>
    		<li <?php if (is_home()) { echo ' class="current_page_item" ';
    		} else { echo ''; } ?> ><a href="<?php echo get_option('home'); ?>/">Projets</a></li>
    
    		<?php wp_list_pages('title_li='); ?>
    	</ul>
    </div>

    The whole nav coming from "wp_list_pages" is getting colored with the same color of the first title of the title's list.

    I've read your code, yet I don't know much of WP dev langage.

    It seems that ´add_filter( 'the_title', array( &$this, 'add_to_title' ) );´ makes a mistake only when my first title is colored.

    Can you help me ?

    thxxxxx

    http://wordpress.org/extend/plugins/post-title-colors/

  2. SqTH
    Member
    Posted 2 years ago #

    Ow, in case of non-resolving-bug, I've added a CSS trick :

    .page_item span[style]{
    	color:#333 !important;
    }

    This bypass the inline style added by the plugin.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic