Community Forums › Forums › Archived Forums › Design Tips and Tricks › Changing header size on "old" magazine theme
Tagged: header, Header size, magazine, magazine theme
- This topic has 15 replies, 2 voices, and was last updated 11 years, 1 month ago by Brad Dalton.
-
AuthorPosts
-
February 14, 2013 at 4:20 am #20271R29Member
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 960x175 to 960x100 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 🙂
February 14, 2013 at 4:35 am #20274Brad DaltonParticipantI don't have access to that theme but you can change the size in the child themes functions.php file.
/** Add support for custom header */ add_theme_support( 'genesis-custom-header', array( 'width' => 960, 'height' => 100 ) );
February 14, 2013 at 4:39 am #20275R29MemberCheers 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)
February 14, 2013 at 4:52 am #20280Brad DaltonParticipantNo 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?
February 14, 2013 at 4:57 am #20281R29MemberGreat Brad, this is the content of theme functions.php, hope this is what you meant:
February 14, 2013 at 5:00 am #20283Brad DaltonParticipantCould you please paste this on Pastebin and delete this code here. Thanks
February 14, 2013 at 5:07 am #20284R29MemberSorry, I don't think I can delete that post. Hope this works:
<script src="http://pastebin.com/embed_js.php?i=57UgXPCH"></script>
February 14, 2013 at 5:44 am #20285R29Membercat_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');
?>February 14, 2013 at 5:46 am #20286R29MemberIm sorry I seem to fail badly 🙁
February 14, 2013 at 6:09 am #20288Brad DaltonParticipantFebruary 14, 2013 at 6:22 am #20289R29MemberI'm not sure what you mean I'm afraid...
February 14, 2013 at 6:52 am #20291Brad DaltonParticipantAdd this to your child themes functions.php file
/** Add support for custom header */ add_theme_support( 'custom-header', array( 'width' => 960, 'height' => 100 ) );
February 14, 2013 at 7:36 am #20297R29MemberThnaks 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 117February 14, 2013 at 8:06 am #20301Brad DaltonParticipantadd_theme_support( 'genesis-custom-header', array( 'width' => 960, 'height' => 100 ) );
Try this.
February 14, 2013 at 8:12 am #20302R29MemberThanks 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 116February 14, 2013 at 8:26 am #20303Brad DaltonParticipantBecause i don't have a copy of your child theme and it doesn't run on Genesis i am not sure i can help you with this unless you email me a full copy of the files.
Not sure how it works if it doesn't run on Genesis.
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.