How to edit my theme for full width?

yes, go to your /wp-content/themes/manifest_v1.1/style.css and edit the following IDs to look like this: #siteWrapper{ margin: 0 auto; padding-top: 15px; width: 97%; text-align: center; position: relative; } #coreContent{ float: auto; width: auto; margin-top: 8px; } #footer{ width: 97%; margin: 40px auto 0; padding: 20px 0 35px 0; border-top: 4px double #ccc; color: #666; text-align: center; … Read more

how to setup content on a static frontpage with css and xhtml

I would set up a new page template (see http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates), create a new page (Pages > New) and set it to use that template, and then set WordPress to use that page as the homepage (Settings > Reading). Then you can fill the custom page template with whatever content you want in between wp_head() and … Read more

How put links in wordpress dynamic sidebar?

If you useWidget Logic it adds a new filter widget_content which you can hook your function to and add link to it somthing like: add_filter(‘widget_content’,’add_link_to_widgets’); function add_link_to_widgets($content){ return $content . ‘<br /><a href=”http://www.domain.com”>my link</a>’ } Update You are missing the point, the plugin is great if you want to use his ability to limit the … Read more

Using if/else statements with output from theme options

There’s no need to be using _e() that’s for text that’s to be translated, you don’t translate CSS, it only comes in one language… With regard to your if/else’ing, try this.. <?php $options = get_option(‘mytheme_theme_options’); if( isset( $options[‘linkcolour’] ) && ( !empty( $options[‘linkcolour’] ) ) ) printf( “a, a:link {color: #%s;}”, $options[‘linkcolour’] ); ?> Here’s … Read more

Dynamic sidebar nav with current page highlighting

I see that you are have a hard time on this so here: <?php global $post; $curent_post = $post; $curent_post_id = $post->ID $parents = array(‘4′,’6′,’8′,’10’); if (in_array($post->post_parent,$parents)){ query_posts(“post_type=page&post_parent=”.$post->post_parent.”&orderby=menu_order&order=asc”); } if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <a href=”https://wordpress.stackexchange.com/questions/12054/<?php the_permalink(); if ($curent_post_id = $post->ID){ echo” class=”highlight”‘; } ?>”><?php the_title(); ?></a> and … Read more

Can’t call external stylesheet for WordPress admin (using wp_admin_css)?

You need to use wp_enqueue_style and hook it into admin_print_styles add_action( ‘admin_print_styles’ , ‘my_wp_admin_css’ ); function my_wp_admin_css() { wp_enqueue_style(‘my_admin_style’ , WP_PLUGIN_URL . ‘/myPlugin/stylesheet.css’ ); } If you just want the stylesheet on your plugins page you can use: $mypage = add_management_page( ‘myplugin’, ‘myplugin’, 9, __FILE__, ‘myplugin_admin_page’ ); add_action( “admin_print_styles-$mypage”, ‘myplugin_admin_head’ );   function myplugin_admin_head() { … Read more

Dynamically add CSS to the visual editor

The reason why this isn’t working is because the WordPress core isn’t loaded when this dynamic style sheet is loaded. get_option() hasn’t been defined yet. What you need to do is load WordPress at the top of your dynamic stylesheet: <?php include(“../../../wp-load.php”); ?>