Rohith Nuguri
asked 10 years ago

Is there a way that i can remove the right sidebar for single posts so that they are displayed as full width pages ?
Thanks 

Rohith Nuguri
replied 10 years ago

For the DW-Focus theme, not Argo.

Rohith Nuguri
replied 10 years ago

Also,
1. I am unable to remove the comments section from the bottom of every page.
2. Is there a way to remove the counters beside the sharing buttons on the posts ?

1 Answers
DominicStaff
answered 10 years ago

Hello Rohith !  
To remove the right sidebar in the single post, please do as the following.
Step 1: You can log in to Dashboard > Appearance > Customize > General Settings, add the following code to the “Header Script”

<style>
.single-post #secondary {
    display: none;
}
#main > .container > .row {
    background: none;
}

.single .site-content > .hentry .entry-content {
    max-width: 870px;
}
</style>

Step 2: Open the single.php file, find the line 13.
Replace the following code:

<div id="primary" class="site-content span9">

With new code:

<div id="primary" class="site-content span12">

2.  If you want to disable all WordPress comments on all future articles by default, you can go to Settings → Discussion and deselect “Allow people to post comments on new articles”. You can enable comments on future articles. This just disables them by default so you don’t have to always perform that extra step.

When editing a Page or Post in WordPress, you can enable or disable comments from the Discussion meta box.

If you don’t see the Discussion meta box in your control panel, 1.) click the “Screen Options” dropdown at the top right of your screen and 2.) make sure “Discussion” is checked.

If you’ve got a bunch of Pages or Posts that you want comments disabled on, you can view all your Pages or Posts list by clicking Pages or Posts respectively. 1.) Click the “Quick Edit” link and 2.) check/uncheck “Allow Comments” then 3.) click “Update” to save the settings.

3. To remove the counters beside the sharing buttons on the posts, You can add the following code to the Header Scrript.

<style>
.twitter, .facebook, .google, .linkedin {
    display: none;
}
</style>

Hope this helps !

Powered by DW Question & Answer Pro