How can I get rid of the sections (marked in red) in single post pages?
https://dl.dropboxusercontent.com/u/30626292/single_post.jpg
Hi mikehirsch!
Thank you for using the theme!
You can remove the comment section with this on Quick CSS or custom.css:
div.comment-entry.post-entry {
display: none;
}
To remove the dummy widgets, edit sidebar.php then look for this code on line 75:
//default dummy sidebar
if ($default_sidebar)
{
avia_dummy_widget(2);
avia_dummy_widget(3);
avia_dummy_widget(4);
}
Replace it with this:
//default dummy sidebar
if ($default_sidebar)
{
//avia_dummy_widget(2);
//avia_dummy_widget(3);
avia_dummy_widget(4);
}
Regards,
Ismael
Is there a way to put the php code into my child-theme functions.php file? Will it override the main theme php?
I try not to edit any main theme files if I don’t need to.
Hey!
Thank you for the update.
Sure, you can copy the sidebar.php file on your child theme folder. This will override the parent theme’s sidebar.php.
Cheers!
Ismael
So I made a sidebar.php file in my child theme folder. In the file, I only used the code you gave me – I didn’t repeat the Enfold code. It works – kind of… Basically the whole sidebar is gone, but I still wanted to show the Archive, which I’m assuming is “avia_dummy_widget(4);” According to your code, I understand it should show Archive, but I wonder why not?
I put the code in exactly as you gave it to me.
I will send site link next.
Hey!
Thank you for the update.
You need to copy the whole code on sidebar.php then make the changes suggested above.
Regards,
Ismael
Ah, that works. Thanks Ismael!