Forum Replies Created

Viewing 15 replies - 241 through 255 (of 2,107 total)
  • This is how I make a wide 1140 twenty eleven theme:

    In my child theme style.css

    #page {
    	max-width: 1140px;
    }
    .featured-posts,
    #ie7 article.intro {
    	max-width: 1140px;
    }

    In functions.php

    /* 200px less that the width! */
    if ( ! isset( $content_width ) )
    	$content_width = 940;

    That’s it!

    HTH

    David

    Hi,
    Have a look at this solution, it is for the twenty eleven theme, but if your theme supports headers then it will work.

    The solution will look for a header image where the name is the same as the category {slug}, so category slug {latest-news} looks for a uploaded header image ‘latest-news.png’.

    There is a twenty eleven child theme download on both posts so you have all the code and can test it.

    Same as this advanced one which lets you choose the header, the layout and the sort order.

    You would need to change it to get the thumbnail for your solution.

    HTH

    Davidv

    In Theme Options:
    Go to: Admin > Appearance > Theme Options
    Choose option: Default Layout > One column No Sidebar
    Then: Save Changes

    In Child theme Stylesheet:

    #primary,
    #secondary {
    	display: none;
    }

    HTH

    David

    Use a Child Theme to make changes or you will loose them with the next upgrade!

    Needs a little padding as well as the border, link is not working try something like:

    #page {
        border: solid 1px #000;
        padding: 20px;
    }

    HTH

    David

    What elements are you trying to overwrite, if you hide the sidebar you will then have to change the template margin or you will have a big space?

    A little more information as to which template page you want to loose the sidebar on?

    If you go to Appearance > ‘Theme Options’ you can choose a different layout!

    Using a style to change a class in a child theme:
    Change the float in a Child Theme:

    #primary,
    #secondary {
    	float: left;
    }

    Change the width:

    #primary,
    #secondary {
    	width: 260px;
    }

    Hide it:

    #primary,
    #secondary {
    	display: none;
    }

    HTH

    David

    In your profile, did you disable the visual editor?

    Amy is right, it is in your profile, the first checkbox

    Users > Profile > Personal Options:

    Visual Editor [] Disable the visual editor when writing

    HTH

    David

    It might be something to do with the theme, or a rouge plugin that uses the editor, the solution is a process of elimination, de-activate plugins and change theme, and see if it returns!

    The element for the buttons has a style to ‘hide-if-no-js’ is java script enabled in the admin area, when you login do the menus flyout and other panels slide ok?

    Use FireFox and FireBug look for the css and scripts to see what is hiding the buttons.

    HTH

    David

    Great,
    Mark this topic as resolved please.

    David

    Is there comments in the footer file, as the validator does not show these?

    It is likely an illegal character like the hyphon in the comment line ‘-‘, I had the same thing in a theme based on the twenty ten theme, the comment is in the Twenty Ten ‘Posted On’ Function!

    The dash between “post” and “date” is a non-standard hyphen, likely added by Word or some other text formatting program. The code below is clean and would make TwentyTen the first theme I have run through the theme-checker to thoroughly validate.

    /**
     * Prints HTML with meta information for the current post-date/time and author.
     *
     * @since Twenty Ten 1.0
     */

    Since it is in a comment block, it would never throw errors.

    HTH

    David

    Send me a copy of the theme and I will have a look to see how much code is deprecated, it is ‘GPL license, v.2’ so I don’t think there should be a problem (unless anyone else says it is a “No No!”).

    We would have to replace the images with free ones, as they would not be GPL and could be copyright.

    I think it could even be put up on GitHub as an open project, if there are a few users.

    I did something for a deprecated theme and brought it up to date in twenty ten.

    There is an email link in the sidebar on my home page, the theme link will have my website.

    Regards

    David

    I opened up style.css with Notepad++ and was going to paste the hex color code in to see if it worked

    Open in FireFox and FireBug, select the [ CSS ^] files from the menubar, then “Edit” > “Live Edit”. paste in the style changes and have a look (it is instant), it is only a temporary live edit, no files are changed.

    HTH

    David

    Hi,
    Mine were from the monitoring pages, as I though those were what you wanted to get close to, the header menu background on that page is a gradiant image and not a solid color, but the widget headers are a solid color.

    Funny thing about the theme, it was licenced under GPL license, v.2, that means ‘open source’ that anyone can pick it up and run with it, copy all the files and just give credit to the original author!

    HTH

    David

    Add to you themes functions.php

    /* Get rid of the admin bar for other users by capability */
    if ( is_user_logged_in() && !current_user_can( 'manage_options' ) ) {
         add_filter('show_admin_bar', '__return_false');
    }

    Or:

    /* Get rid of the admin bar for other non admin users */
    if ( is_user_logged_in() && !is_admin() ) {
         add_filter('show_admin_bar', '__return_false');
    }

    HTH

    David

    The top banner is a graphic, the Advertise Box background is close and it is #1A2E6B, same as the dark blue text background in the menu.

    The main banner color is a graidiant starting with the same color #1A2E6B

    HTH

    David

    @sonic
    This is the same as the twenty eleven dark theme option, other styles are loaded in the header after the stylesheet so they cannot be over-written, this was my solution for a twenty eleven child theme, I have changed the code below for a main theme, so it is untested.

    This will load the custom-style.css after all stylesheets and header styles have been loaded.

    Create a second style.css file like custom-style.css, then in your functions.php add:

    add_action( 'after_setup_theme', 'post_theme_setup' );
    
    if ( !function_exists( 'post_theme_setup' ) ):
    function post_theme_setup() {
    
    	/* Add our custom styles after all stylesheets have loaded */
    	if ( !function_exists( 'custom_enqueue_style' ) ):
    		function custom_enqueue_style() {
    			wp_enqueue_style( 'custom_style', get_template_directory_uri() . '/custom-style.css', array(), null );
    			do_action( 'custom_enqueue_style', 'custom_style' );
    		}
    	add_action( 'wp_enqueue_scripts', 'custom_enqueue_style', 11 );
    	endif;
    }
    endif;

    HTH

    David

Viewing 15 replies - 241 through 255 (of 2,107 total)