Styling Active Links Within WordPress

You will have to set #menuwrap ul li.current-menu-item a to the color and style you want. The Problem is actually a CSS issue – because the CSS is more specific if an ID of an element is defined (like in your #menuwrap ul li a), so the above definition is even more specific and is … Read more

a slider menu is compromised in space

I can see the problem is that max-height: 120px is set in the inline css of <div id=”soliloquy-container-1124″ class=”soliloquy-container soliloquy-fade”>. Removing that style solves the issue.

change the icon of a custom post type in WordPress to use twitter boostrap

I always like using this tutorial which would give you this code. <?php add_action( ‘admin_head’, ‘cpt_icons’ ); function cpt_icons() { ?> <style type=”text/css” media=”screen”> #menu-posts-POSTTYPE .wp-menu-image { background: url(<?php bloginfo(‘template_url’) ?>/images/YOURIMAGE.png) no-repeat 6px -17px !important; } #menu-posts-POSTTYPE:hover .wp-menu-image, #menu-posts-POSTTYPE.wp-has-current-submenu .wp-menu-image { background-position:6px 7px!important; } </style> <?php } ?>

How can i put image to come first than the title?

You can’t use the post content to add an image outside of the call to the_content(). If you want to look into implementing Post Thumbnails (i.e. Featured Images) into your Theme. Full implementation is outside the scope of a simple question-and-answer; however, in the end, your markup will change from this: <h1 class=”title”><a href=”https://wordpress.stackexchange.com/questions/87953/<?php the_permalink() … Read more

How to change the menu color

Is this the answer you’re looking for? Go to your .css file and replace this #access { background: linear-gradient(rgb(37, 37, 37), rgb(10, 10, 10)) repeat scroll 0% 0% transparent; box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.4); clear: both; display: block; float: left; margin: 0px auto 6px; width: 100%; } With this #access { background: … Read more

How to insert post into a page?

The likely issue here is you need to refresh your permalinks for it to recognise the post type. Classic fix is to go to Settings > Permalinks and then click Save Changes without actually saving anything. Just loading the permalinks setting page usually fixes it, but saving makes sure. I’d say that’ll fix the issue.

Changing 2011 theme header image based on user dropdown

I had to take information from both of your posts to be able to come with something. Try replacing <img src=”https://wordpress.stackexchange.com/questions/89211/<?php header_image(); ?>” width=”<?php echo $header_image_width; ?>” height=”<?php echo $header_image_height; ?>” alt=”” /> width <?php if (!(isset($_POST[“styles”]))) { //if post not set (first visit) if ($_COOKIE[“chosenStyle”] == “night”) { echo ‘<img src=”‘.get_template_directory_uri() . ‘/images/headers/SomethingOriginalTheMoonAndStars.png” width=”1000″ … Read more

How to implement a JavaScript and CSS file for my WordPress homepage?

You would enqueue it, this is how Javascript is added to WordPress properly. This function would typically go in your theme’s functions.php or in a plugin. function my_scripts_intro() { is_front_page(){ wp_enqueue_script( ‘introjs’,’path to ..intro.js’ ); wp_enqueue_style( ‘introcss’,’path to ..intro.css’ ); } } add_action( ‘wp_enqueue_scripts’, ‘my_scripts_intro’ ); To determine the state of the visitor you would … Read more