Support » Themes and Templates » How to remove logo image from other pages (WooTheme – Artificer)

Viewing 5 replies - 1 through 5 (of 5 total)
  • Just use

    <?php
    if( is_home() ){
    //Logo Here
    }?>

    Thanks,

    Do I add this to the CSS editor section?? Is that down the right hand side is says stylesheet.css ??

    Hi ameredith

    This might be a bit easier, if a bit longer.

    First you need to find the page id of your home page. You can do that by watching this https://www.youtube.com/watch?v=fLg2T1AvmFE

    Next, add the following code to your styles.css sheet. If you look at the second rule you will see an “X” for the page id. You need to change that the home page id. So if your home page id is 6 than the rule is .page-id-6 #header… etc.

    This will let your logo display on the homepage, but it will not appear on other pages, nor will it screw up the spacing in the header.

    #header #logo {
        margin-right: 1em;
        visibility: hidden;
    }
    
    .page-id-X  #header #logo {
        margin-right: 1em;
        visibility: visible;
    }

    One quick but important note on modifying the style.css file of your theme. When you update your theme that file will almost certainly be overwritten and all the custom code you added will be erased. It would be better to add this to a child theme or download a plugin like this one https://wordpress.org/plugins/simple-custom-css/ that lets you add a custom css sheet. That way you are better protected when you update your theme.

    Best of Luck
    Mike

    Thanks Mike! I will give this a go in the next few days

    Hi guys,

    i have the exact same problem :(,Logo is on all my pages
    how to remove .. ??

    I only want the logo to appear on the “homepage” only.this is my style.css

    /*
    Theme Name: ColorSnap
    Description: Instantly change the entire color scheme to any color you can imagine with just one simple setting! Also, easily set your own custom logo/header and background. Also responsive! Simply set your favorite color under Appearance > Theme Color in your WP admin and save. Thank you. – Official Support Forum: bryanhadaway.com/forum/projects
    Author: Bryan Hadaway
    Author URI: http://calmestghost.com/
    Version: 1.0.4
    Tags: black, blue, brown, gray, green, orange, pink, purple, red, silver, tan, white, yellow, dark, light, two-columns, right-sidebar, fixed-width, flexible-width, custom-header, custom-background, custom-colors, custom-menu, featured-images, microformats, post-formats, sticky-post, theme-options, threaded-comments, translation-ready
    License: GNU General Public License
    License URI: https://www.gnu.org/licenses/gpl.html

    ColorSnap WordPress Theme © 2013 Bryan Hadaway
    ColorSnap is distributed under the terms of the GNU GPL
    */

    html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{font-size:100%;font:inherit;padding:0;border:0;margin:0;vertical-align:baseline}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:”;content:none}table{border-collapse:collapse;border-spacing:0}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}
    th, td{padding:2px}big{font-size:125%}small, sup, sub{font-size:80%}sup{vertical-align:super}sub{vertical-align:sub}dd{margin-left:20px}kbd, tt{font-family:courier;font-size:80%}ins{text-decoration:underline}del, strike, s{text-decoration:line-through}

    body{font-family:georgia,’times new roman’,times,serif;color:#fff;margin:3% 0 4%;background:#09f}
    #container{color:#333}
    p{margin:20px 0}
    .entry-content p:first-of-type{margin-top:0}
    .entry-content p:last-of-type, .entry-content:last-child{margin-bottom:0}
    #content, .widget-container{font-size:87.5%}
    a, h1, h2, h3, h4, h5, h6, h1 a, h2 a, h3 a, h4 a, h5 a, h6 a{color:#09f;text-decoration:none}
    a:hover{text-decoration:underline}
    h1, h2, h3, h4, h5, h6{helvetica,arial,sans-serif;font-weight:normal;margin-top:20px;margin-bottom:5px;clear:both}
    h1{font-size:175%}
    h2{font-size:155%}
    h3{font-size:135%}
    h4{font-size:125%}
    h5{font-size:115%}
    h6{font-size:105%}
    strong, dt{font-weight:bold}
    em, address, cite, var{font-style:italic}
    code{font-family:’courier new’,courier,serif;color:#09f}
    pre{overflow-x:auto;white-space:pre-wrap}
    hr{height:1px;color:#ccc;border:0 none;margin:30px 0;background-color:#ccc}
    .entry-content ul, .entry-content ol, .comment-content ul, .comment-content ol{font-family:helvetica,arial,sans-serif;margin-left:20px !important}
    .entry-content li:before, .comment-content li:before{content:”- “}
    ol li:before{content:”” !important}
    #container ol, .comment-content ol{list-style:decimal inside}
    #sidebar .widget-container ul{display:block;margin-left:10px}
    blockquote{padding:15px;border:4px double #09f;margin:10px 2%;background:#f6f6f6}
    input, textarea{font-family:arial,sans-serif;font-size:70%;color:#666;padding:5px;border:1px solid #09f;outline:none;background:#f6f6f6}
    #container input, #container textarea{font-size:90%}
    input[type=”submit”], input[type=”reset”]{cursor:pointer}
    #content input[type=”submit”], #content input[type=”reset”], #container #searchsubmit, .button{font-size:100% !important;color:#fff;padding:8px 10px;border:1px solid #09f;background-color:#09f;background-image:url(images/trans.png);opacity:0.8}
    #content input[type=”submit”]:hover, #content input[type=”reset”]:hover, #container #searchsubmit:hover, .button:hover{opacity:1}
    .clear{clear:both}
    a img, input[type=”image”]{border:0 none}
    img, video{max-width:100% !important;height:auto}
    #content img, #content figure{max-width:640px !important;height:auto}
    #sidebar img, #sidebar figure{max-width:300px !important;height:auto}

    #wrapper{min-width:320px;max-width:1000px;margin:0 auto}
    header{padding-bottom:20px;clear:both}
    #branding{margin-bottom:10px;float:left}
    #logo{width:100%}
    #container{padding-bottom:20px;background:#fff;}
    #content{width:64%;padding:0 2%;float:left}
    #sidebar{width:30%;margin-right:2%;float:right}
    footer{clear:both}

    nav{position:relative;margin-top:10px;background-color:#09f;background-image:url(images/trans.png);background-repeat:repeat;clear:both}
    nav ul.menu{padding-left:4px}
    nav .parent > a, nav .parent > a:hover{background-image:url(images/arrow.png);background-position:right;background-repeat:no-repeat}
    nav ul ul .parent > a, nav ul ul .parent:hover > a:hover, nav ul ul li:hover ul .parent > a, nav ul ul li:hover ul .parent > a:hover{background-image:url(images/arrow-right.png);background-position:right;background-repeat:no-repeat}
    nav ul, nav ul li{display:inline}
    nav ul li a{display:inline-block;font-family:’lucida grande’,helvetica,arial,verdana,sans-serif;font-size:14px;color:#fff;line-height:37px;text-decoration:none;padding:0 15px;border-right-width:1px;border-right-style:solid;border-color:#09f}
    nav ul.menu li a{margin-left:-4px}
    nav ul li a:hover{color:#fff;text-decoration:none;background:#444}
    nav .current-menu-item a, nav .current_page_item a{color:#09f}
    nav .current-menu-item .sub-menu a, nav .current_page_item .children a{color:#fff}
    nav li .sub-menu{margin-left:-4px}
    nav ul li{position:relative}
    nav li ul{display:none;position:absolute;top:29px;left:0}
    nav li ul a{background:#09f}
    nav ul ul li:hover ul, nav ul ul ul li:hover ul{left:0;margin:-34px 0 11px 179px}
    nav ul li:hover ul{display:inline-block}
    nav ul ul, nav ul li:hover ul ul, nav ul ul li:hover ul ul{display:none}
    nav ul li:hover ul, nav ul ul li:hover ul, nav ul ul ul li:hover ul{display:block;z-index:2147483647}
    nav ul li:hover ul li a, nav ul ul li:hover ul li a, nav ul ul ul li:hover ul li a{font-size:13px;line-height:30px;width:150px;padding:0 14px;border-right-width:1px;border-right-style:solid;border-color:#09f;margin:0;opacity:0.9}
    nav ul li:hover ul li a{margin:-1px 0 0}
    nav ul ul li:hover ul li a{}
    nav ul ul ul li:hover ul li a{}
    nav ul li:hover ul li a:hover, nav ul ul li:hover ul li a:hover, nav ul ul ul li:hover ul li a:hover{background:#555}

    header a{outline:none}
    #content, #sidebar{color:#333;line-height:140%}
    .entry-content{text-align:justify;margin:20px 0}
    .entry-meta, .entry-footer, .comment-meta, #copyright{font-size:90%}
    #site-title a, #site-title h1 a, #site-title h1{ text-shadow: 2px 2px 8px #08152f;font-family:helvetica,arial,sans-serif;font-size:40px;font-weight:bold;color:#fff;padding:0;margin:0}
    #site-title a:hover, #site-title h1 a:hover{text-decoration:none}
    #site-description{font-size:112.50%;color:#fff}
    .entry-meta, .entry-footer, .comment-meta, #form-allowed-tags code{color:#aaa}
    #sidebar ul{display:inline;padding:0;margin:0}
    .widget-title{font-size:125%;padding-bottom:1px;border-bottom:1px solid #ccc;margin-bottom:5px}
    #respond h3{clear:left}
    footer a{color:#fff}
    #copyright{color:#fff;text-align:center;padding:2%}

    nav #searchform{margin:7px 7px 0 0;float:right}
    #sidebar #searchform{padding:20px 0 30px 0;float:none}
    #wrapper #s{width:229px;height:16px;border-right:0;float:right}
    #wrapper nav #s{width:200px;height:13px;color:#09f;border:none;background:#09f}
    #s:focus{background:#fff}
    #wrapper nav #s:focus{background:#fff}
    #searchsubmit{width:60px;height:28px;float:right}
    nav #searchsubmit{display:none}
    #container #searchsubmit{padding:0}
    .error404 #content #searchform, .search #content #searchform{margin-top:55px;float:left}

    .post{padding-bottom:30px;border-bottom:1px dashed #ccc;margin-bottom:30px}
    .entry-title{margin-bottom:15px}
    .single .entry-title{text-align:left;line-height:30px;margin-top:12px;margin-bottom:10px}
    .entry-title a{font-size:25px}
    .nav-previous{text-align:left;float:left}
    .nav-next{text-align:right;float:right}
    .attachment .nav-previous{float:left}
    .attachment .nav-next{float:right}
    .comments ul{padding:0;margin:0}
    .comment, .trackback, .pingback{padding:10px;margin:10px 0 10px 0}
    .odd{background:#f6f6f6}
    #form-allowed-tags code{font-size:12px}
    #respond input{width:40%;display:block}
    #respond input:focus, #respond textarea:focus{background:#fff}
    #respond textarea{width:98.125%;height:100px;overflow:auto}
    #respond #submit{width:auto;font-weight:bold}
    .avatar{width:32px;height:32px;margin:0 5px 5px 0;float:left}

    .sticky{padding:0.01px 15px 15px 15px;margin-top:20px;background:#f6f6f6}
    .sticky .entry-title{padding-top:20px;margin-top:0}
    .bypostauthor{background:#f6f6f6}
    .wp-caption{margin:20px 0}
    .wp-caption-text{}
    .alignleft, .aligncenter, .alignright{text-align:center}
    .gallery-caption{border:#ccc 1px solid}
    .alignleft{margin:15px 15px 15px 0;float:left}
    .alignright{margin:15px 0 15px 15px;float:right}
    .aligncenter{display:block;margin:15px auto;clear:both}
    .size-thumbnail{margin:5px}
    #wp-calendar{width:100%}
    #wp-calendar td{text-align:center}
    #wp-calendar #prev{text-align:left}
    #wp-calendar #next{text-align:right}
    .page-link, .entry-footer, .edit-link{clear:both}
    .page-link, .entry-footer, .page .edit-link{display:block;margin-top:20px}

    @media all and (max-width:1000px){#sidebar #s{width:96%;border-right:1px solid #ccc}#sidebar #searchsubmit{display:none}}
    @media all and (max-width:768px){}
    @media all and (max-width:480px){}
    @media all and (max-width:320px){header, nav #s, #content, #sidebar, footer{width:310px;max-width:310px;text-align:left;margin-left:auto;margin-right:auto}nav ul.menu{padding-left:0}nav .sub-menu, nav .children{display:none !important}nav ul li a, nav ul li a:hover{width:279px;max-width:279px;border:0;margin-left:0 !important}nav #s{width:286px !important;margin-bottom:5px}.entry-content{text-align:left}}

    #nav-above, #comment-notes, .form-allowed-tags{display:none}
    .attachment #nav-above{display:block}

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to remove logo image from other pages (WooTheme – Artificer)’ is closed to new replies.