• Resolved rachellucie

    (@rachellucie)


    Hi there,

    I am using this theme and want to remove the left hand search box that shows on blog pages. Can you help?

    I am currently not able to give the url for the site as it’s a collaboration in maintenance mode, but it’s still worth posting incase it’s a case of ‘disable this’/

    I have a child theme activated. The header is:

    /*
    Theme Name:     Ascetica Child
    Theme URI:      xxx
    Description:    Child theme for the Ascetica theme
    Author:         Rachel Johns
    Author URI:     xxx
    Template:       ascetica
    Version:        0.1.0
    */
Viewing 4 replies - 1 through 4 (of 4 total)
  • That’s a default for Secondary Sidebar when there is not widget in it.

    Try dragging some widgets into Secondary Sidebar, the search box should be gone.

    Thread Starter rachellucie

    (@rachellucie)

    Hi there,

    Thanks for the reply, I did as you suggested, but it’s not solved my problem. I added the meta widget – but now meta shows there – I really want that column gone altogether on blog postss (or ‘all blog posts’) and want it wide with just the right hand widget column.

    Can this be done?
    thanks

    So it’s the removing the left sidebar, not just the search box.

    I looked into theme files and found that it’s less complicated to do this than I initially thought. It feels like the CSS is firstly prepared for no left sidebar and the image size added in function too.

    The header of your child stylesheet shown above is missing the @import line, could be that you only show the top part, but anyway you must have the @import line in it.

    /*
    Theme Name:     Ascetica Child
    Theme URI:      xxx
    Description:    Child theme for the Ascetica theme
    Author:         Rachel Johns
    Author URI:     xxx
    Template:       ascetica
    Version:        0.1.0
    */
    
    /* ===== Import parent's style ===== */
    @import url("../ascetica/style.css");
    
    /* ===== make no left sidebar  ===== */
    #content {
    	margin-left: 0;
    	width: 100%;
    }
    
    #sidebar-secondary {
    	display: none;
    }

    With that and also put an empty Text Widget into that sidebar, to get rid of the default search box in the markup.

    Thread Starter rachellucie

    (@rachellucie)

    Hi,

    Yes I do have the @import etc part, and the child theme is working. I wasn’t understanding that the search box was residing in a column which was there to be populated by widgets. I’ve just added your code and emptied the secondary widget area, and it’s worked a treat!

    thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Remove search box on left on all blog pages’ is closed to new replies.