ThemeShaper Forums » Thematic


Change padding only on front page

(3 posts)
  • Started 10 years ago by ThetaHealer
  • Latest reply from beanfair
  • This topic is resolved
  1. i was wondering how to change the padding only on front page as I have a slide show and want it right up the top and leave the default settings for the other pages.


    Posted 10 years ago #
  2. sowingseeds

    I presume if you use .home #header {display:none;} that would remove the header on that page. Any further padding change by .home #specific division {}

    Posted 10 years ago #
  3. beanfair

    You may have to tweak it a bit depending on if your front page is "static" vs posts page. Use view source to see the classes available to you once you set up your page and your read settings. For my site, .home didn't work. Instead I set up a function to assign an additional style sheet for my front page.

    //Conditional stylesheet for front page
    function frontpage_css() {
    	if (is_page_template('front-page.php') ) {?>
    		<link rel="stylesheet" type="text/css" href="<?php echo
    		bloginfo('stylesheet_directory') ?>/frontpage.css" /> <?php }
    add_action('wp_head', 'frontpage_css');

    My slideshow is below a larger home header image on my front page, and the additional stylesheet made it easy

    Posted 10 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.