-
AuthorPosts
-
April 23, 2014 at 2:02 am #254720
How can I get rid of the sections (marked in red) in single post pages?
https://dl.dropboxusercontent.com/u/30626292/single_post.jpg
April 23, 2014 at 1:13 pm #254880Hi 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,
IsmaelApril 23, 2014 at 9:54 pm #255234Is 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.April 24, 2014 at 1:30 pm #255470Hey!
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!
IsmaelApril 24, 2014 at 7:48 pm #255745So 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.
April 24, 2014 at 7:48 pm #255747This reply has been marked as private.April 25, 2014 at 9:40 am #255990Hey!
Thank you for the update.
You need to copy the whole code on sidebar.php then make the changes suggested above.
Regards,
IsmaelApril 25, 2014 at 11:16 pm #256389Ah, that works. Thanks Ismael!
-
AuthorPosts
- The topic ‘Single Post pages : Delete some parts’ is closed to new replies.
