Tagged: x
-
AuthorPosts
-
October 9, 2016 at 4:44 pm #1209139
JohanschackParticipantHi guys!
I’m starting to learn how the child theme works, and wordpress in general too. I’ve been able to add a slider on top of all blog posts, and an essential grid in the bottom, I’m so proud! take a look: http://jvfirst.dk/this-is-a-test-blog/
But now I would like to remove the title, and meta data. what file should i move and edit from the parent theme, to the child theme to delete this? I’m using the Ethos stack.
Best regards,
JohanOctober 9, 2016 at 11:15 pm #1209358
RupokMemberHi Johan,
Thanks for writing in! You can look into the file /framework/views/{stack}/_landmark-header.php
Hope this helps.
October 10, 2016 at 3:11 am #1209538
JohanschackParticipantThanks, I’m a bit afraid of deleting too much. Basically, I want to delete the whole section in the attached image. What should I delete?
October 10, 2016 at 3:41 am #1209574
ChristopherModeratorHi there,
Copy _content-post-header.php from framework/views/ethos and put it in the same path inside child theme, replace existing code with following :
<?php // ============================================================================= // VIEWS/ETHOS/_CONTENT-POST-HEADER.PHP // ----------------------------------------------------------------------------- // Standard <header> output for various posts. // ============================================================================= ?> <header class="entry-header"> <?php if ( is_single() ) : ?> <?php x_entry_navigation(); ?> <h1 class="entry-title"><?php the_title(); ?></h1> <?php endif; ?> <?php x_ethos_entry_meta(); ?> </header>Hope it helps.
October 10, 2016 at 4:01 pm #1210489
JohanschackParticipantHey,
That didnt do anything, but instead i just removed everything in the file, except for:
<?php
// =============================================================================
// VIEWS/ETHOS/_CONTENT-POST-HEADER.PHP
// —————————————————————————–
// Standard <header> output for various posts.
// =============================================================================?>
And now it works.
October 10, 2016 at 5:09 pm #1210557
Nabeel AModeratorGlad you’ve sorted it out.
Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1209139 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
