Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1209139
    Johanschack
    Participant

    Hi 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,
    Johan

    #1209358
    Rupok
    Member

    Hi Johan,

    Thanks for writing in! You can look into the file /framework/views/{stack}/_landmark-header.php

    Hope this helps.

    #1209538
    Johanschack
    Participant

    Thanks, 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?

    #1209574
    Christopher
    Moderator

    Hi 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.

    #1210489
    Johanschack
    Participant

    Hey,

    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.

    #1210557
    Nabeel A
    Moderator

    Glad you’ve sorted it out.

    Cheers!

  • <script> jQuery(function($){ $("#no-reply-1209139 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>