Changing header size on "old" magazine theme

Community Forums Forums Design Tips and Tricks Changing header size on "old" magazine theme

This topic is: not resolved

This topic contains 15 replies, has 2 voices, and was last updated by  braddalton 1 year, 6 months ago.

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #20271

    R29
    Participant
    Post count: 8

    Dear reader,

     

    I am running my site http://www.datingsite-ervaringen.nl on the “old” magazine theme (not on Genesis). I would like to change the header size, which is now 960×175 to 960×100 or so.

    Unfortunately, when I change the CSS code:

    #header {

    background: #111111 url(images/header.png);
    width: 960px;
    height: 175px;
    margin: 0px auto 0px;
    padding: 0px;
    overflow: hidden;
    }

    175px to 100px the header does seem smaller but the “pages” disapperar (home, niet tevreden?, blog, contact et cetera)

    I have no idea what to do. Can anyone help me please? Thanks in advance :)

    #20274

    braddalton
    Participant
    Post count: 9223

    I don’t have access to that theme but you can change the size in the child themes functions.php file.
    [php]
    /** Add support for custom header */
    add_theme_support( ‘genesis-custom-header’, array( ‘width’ => 960, ‘height’ => 100 ) );
    [/php]


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #20275

    R29
    Participant
    Post count: 8

    Cheers BradDalton but I am not using Genesis + Child theme but the old magazine theme

    (I have changed too much to update to Genesis + magazine child theme Im afraid. Not sure what will still work and what not)

    #20280

    braddalton
    Participant
    Post count: 9223

    No worries. You can still try this tutorial and add support for a custom header or change the sizes in your functions file. Can you send me the file please?


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #20281

    R29
    Participant
    Post count: 8

    Great Brad, this is the content of theme functions.php, hope this is what you meant:

     

    #20283

    braddalton
    Participant
    Post count: 9223

    Could you please paste this on Pastebin and delete this code here. Thanks


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #20284

    R29
    Participant
    Post count: 8

    Sorry, I don’t think I can delete that post. Hope this works:

    <script src=”http://pastebin.com/embed_js.php?i=57UgXPCH”></script>

    #20285

    R29
    Participant
    Post count: 8

    cat_ID) { return $category->cat_name; break; }
    }
    }

    // Load the scripts
    if(get_theme_mod('subnav') == 'Yes') {
    wp_enqueue_script('subnav', get_bloginfo('template_url').'/js/subnav.js','','1.0',true);
    } else {
    wp_enqueue_script('nav', get_bloginfo('template_url').'/js/nav.js','','1.0',true);
    }
    if(get_theme_mod('tabber') == 'Yes') {
    wp_enqueue_script('tabber', get_bloginfo('template_url').'/js/tabber.js','','1.0',true);
    }

    // include the breadcrumb nav tool
    include(TEMPLATEPATH."/tools/breadcrumbs.php");

    // include the theme options
    include(TEMPLATEPATH."/tools/theme-options.php");

    if ( function_exists('register_sidebars') )
    register_sidebar(array('name'=>'Sidebar Right','before_title'=>'','after_title'=>''));

    function the_content_limit($max_char, $more_link_text = '(more...)', $stripteaser = 0, $more_file = '') {
    $content = get_the_content($more_link_text, $stripteaser, $more_file);
    $content = apply_filters('the_content', $content);
    $content = str_replace(']]>', ']]>', $content);
    $content = strip_tags($content);

    if (strlen($_GET['p']) > 0) {
    echo "";
    echo $content;
    if ($more_link_text != '') {
    echo " ".__('Read More', 'studiopress')." →";
    }
    echo "";
    }
    else if ((strlen($content)>$max_char) && ($espacio = strpos($content, " ", $max_char ))) {
    $content = substr($content, 0, $espacio);
    $content = $content;
    echo "";
    echo $content;
    echo "...";
    if ($more_link_text != '') {
    echo " ".$more_link_text."";
    }
    echo "";
    }
    else {
    echo "";
    echo $content;
    if ($more_link_text != '') {
    echo " ".__('Read More', 'studiopress')." →";
    }
    echo "";
    }
    }

    function sp_widget() {
    require_once(ABSPATH.WPINC.'/rss.php');
    if ( $rss = fetch_rss( 'http://feeds2.feedburner.com/studiopress' ) ) {
    $content = '"';
    $content .= 'Upgrade now to the Pro Plus All-Theme package for only $140 --></a (Use PPUPG as the discount code when you are on the shopping cart page.)';
    $content .= '';
    foreach ( array_slice( $rss->items, 0, 5 ) as $item ) {
    $content .= '';
    $content .= '
    '.htmlentities( $item['title'] ).'';
    $content .= ' '.date('F j, Y',strtotime($item['published'])).'';
    $content .= ''.htmlentities( $item['summary'] ).'';
    $content .= '';
    }
    $content .= '';
    $content .= 'Subscribe to RSS  Subscribe via Email';
    $content .= '';
    echo $content;
    }
    }

    function sp_widget_setup() {
    wp_add_dashboard_widget( 'sp_db_widget' , 'The Latest News From StudioPress' , 'sp_widget');
    }

    add_action('wp_dashboard_setup', 'sp_widget_setup');

    // Remove WP Generator for security reasons
    remove_action('wp_head', 'wp_generator');
    ?>

    #20286

    R29
    Participant
    Post count: 8

    Im sorry I seem to fail badly :(

    #20288

    braddalton
    Participant
    Post count: 9223

    Paste the text url to the pastebin page please. Not the html


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #20289

    R29
    Participant
    Post count: 8

    I’m not sure what you mean I’m afraid…

    #20291

    braddalton
    Participant
    Post count: 9223

    Add this to your child themes functions.php file
    [php]
    /** Add support for custom header */
    add_theme_support( ‘custom-header’, array( ‘width’ => 960, ‘height’ => 100 ) );
    [/php]


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #20297

    R29
    Participant
    Post count: 8

    Thnaks Brad, then it says this:
    Parse error: syntax error, unexpected ‘add_theme_support’ (T_STRING) in /home/reinoud/domains/datingsite-ervaringen.nl/public_html/wp-content/themes/magazine_10/functions.php on line 117

    #20301

    braddalton
    Participant
    Post count: 9223

    [php]
    add_theme_support( ‘genesis-custom-header’, array( ‘width’ => 960, ‘height’ => 100 ) );
    [/php]

    Try this.


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #20302

    R29
    Participant
    Post count: 8

    Thanks again Brad, but now it says:
    Parse error: syntax error, unexpected ‘add_theme_support’ (T_STRING) in /home/reinoud/domains/datingsite-ervaringen.nl/public_html/wp-content/themes/magazine_10/functions.php on line 116

Viewing 15 posts - 1 through 15 (of 16 total)

You must be logged in to reply to this topic.