Need help? Check out our Support site, then


Nightmare with Oxygen (semi amateur)

  1. giroditaliavintage
    Member

    Having a really hard time customising my Oxygen layout. Can't get rid of the "search", "recent posts", "archive", "blogroll" and so on features despite removing them on the widgets page.

    Would like to have a very simple layout but it's making it too crowded. Also, how can I centre my header and primary menu using CSS ?

    Thanks, sorry for the inconvenience, i've been pulling my hair out for hours.

    Stella

    The blog I need help with is giroditaliavintage.com.

  2. Sorry to hear you're having trouble!

    Can't get rid of the "search", "recent posts", "archive", "blogroll" and so on features despite removing them on the widgets page.

    What probably happened before is that if you remove all of the widgets, the theme places a default set of them in the sidebar.

    You can use a "display: none" property to hide elements, such as the entire sidebar. Here is an example that hides the left sidebar:

    #secondary {
    	display: none;
    }
    
    .page-template-showcase-php #content-wrap {
    	float: none;
    	margin: 0 auto;
    }
    
    #content {
    	margin-left: 0;
    }

    Or, here is an example to get you started if you wanted to remove the right sidebar instead:

    #tertiary {
    	display: none;
    }
    
    .page-template-showcase-php #content {
    	margin-right: 0;
    }
    
    .featured-image img {
    	width: 100%;
    	height: auto;
    }
    
    .recent-articles a.read-more {
    	top: auto;
    	bottom: 150px;
    }
    
    .single #content {
    	margin-right: 0;
    }

    Note that a few additional adjustments may still need to be made, this is just a starting point. Also note that you cannot change the size of the original embedded images, so stretching those images like I've done in the example I've posted above will pixelate the images and they won't look as sharp or as high quality as the originals. This is a drawback of removing the right sidebar and stretching the featured articles and recent posts sections in the Oxygen theme.

  3. How can I centre my header and primary menu using CSS ?

    Looks like you already got this one covered by using the following CSS:

    .main-navigation {
    	text-align: center;
    	width: 100%;
    }
    
    .main-navigation ul {
    	display: inline-block;
    }
    
    #masthead > a {
    	display: block;
    	width: 100%;
    	text-align: center;
    }

    Nice work!

  4. Hey! An easy way to fix the widgets issue without css is just to add the 'image' widget with an image of your background colour which will make it look like nothing is there! Apparently if you don't have any widgets in the sidebar, wordpress 'automatically' puts in the "search", "recent posts", "archive", "blogroll" widgets. So yep, if you put in the blank image widget it'll be all good!
    I can vouch for this as I was having the same issues and this fixed it :)

  5. Hey! An easy way to fix the widgets issue without css is just to add the 'image' widget with an image of your background colour which will make it look like nothing is there!

    Another way would be to use an empty text widget.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags