Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter MooKoo

    (@mookoo)

    I have also tried using the following code placed in the header:

    <style>
    
    	<?php if (is_page(projects)) { ?>
        	.page_item_7  { color: #ff8608;
    		float: left;
    			}
    
    	<?php } elseif (is_page('projects')) { ?>
    		a { color: #ff8608;
    		float: left;
    			}
    
    	<?php } elseif (is_singular('Portfolio')) { ?>
    		a { color: #ff8608;
    		float: left;
    			}
    
    	<?php } elseif (is_singular('blog')) { ?>
    		a { color: #ff8608;
    		float: left;
    			}
    
    	<?php } ?>
    	color: #ff8608;
    			}
    	</style>
    	<!-- end nav styling -->

    I put in various if statements to 1. See if I had written the code right at all and 2. To see if going to the slug portfolio is a page. For whatever reason using simple portfolio causes whatever page you link it to to no longer be a page. So is_page(‘slug’) doesn’t seem to work.

    Does anyone know of a is function that fits whatever type a simple portfolio page is turned into?

Viewing 1 replies (of 1 total)