Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    The first step is to create and activate a child theme of Athena.

    https://codex.www.ads-software.com/Child_Themes

    That image on the top has a CSS class of parallax-window so I think that’s the one you want to modify in your child theme’s style.css file.

    .parallax-window { display: none; }

    See if that works for you in the child theme.

    Thread Starter magentawave

    (@magentawave)

    Thank you. I appreciate you taking the time to replied but the code that makes the featured image appear at the top of a post isn’t in the style.css. It’s in content-single.php and it’s different than what you suggested. You can see it in the 12th line below.

    The strange thing now is that the “Featured Image” box on the Post edit page is totally missing now – and even after switching back to the Athena theme instead of the child theme! It was there a couple days ago but it’s gone now. Weird.

    THIS REMOVES THE FEATURED IMAGE FROM APPEARING AT THE TOP OF A POST:

    <?php
    /**
     * Template part for displaying single posts.
     *
     * @link https://codex.www.ads-software.com/Template_Hierarchy
     *
     * @package Athena
     */
    ?>
    
    <?php if (get_post_thumbnail_id($post->ID)) : ?>
        <div style="display:none;" id="athena-page-jumbotron" <!--class="parallax-window" data-parallax="scroll" data-image-src="<?php //echo wp_get_attachment_url(get_post_thumbnail_id($post->ID)) ?>"-->>
    
            <header class="entry-header">
                <?php the_title('<h1 class="entry-title">', '</h1>'); ?>
            </header><!-- .entry-header -->
    
        </div>
    <?php endif; ?>
    
    <div class="row">
    
        <?php get_sidebar('left'); ?>
    
        <div class="col-sm-<?php echo athena_main_width(); ?>">
    
            <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
                <header class="entry-header">
                    <?php the_title('<h1 class="entry-title">', '</h1>'); ?>
    
                    <div class="entry-meta">
                        <div class="meta-detail">
    
                            <div><span class="fa fa-calendar"></span> <?php echo athena_posted_on(); ?></div>
    
                            <div class="author"><?php echo get_the_author() ? '<span class="fa fa-user"></span> ' . get_the_author() : ' '; ?></div>
    
                            <div><?php echo get_comments_number() == 0 ? '<span class="fa fa-comment"></span> ' . __('No comments yet', 'athena') : get_comments_number() . ' Comments'; ?></div>
    
                        </div>
    
                    </div><!-- .entry-meta -->
    
                </header><!-- .entry-header -->
    
                <div class="entry-content">
                    <?php the_content(); ?>
                    <?php
                    wp_link_pages(array(
                        'before' => '<div class="page-links">' . esc_html__('Pages:', 'athena'),
                        'after' => '</div>',
                    ));
                    ?>
                </div><!-- .entry-content -->
    
                <footer class="entry-footer">
                    <?php athena_entry_footer(); ?>
                </footer><!-- .entry-footer -->
    
                <?php the_post_navigation(); ?>
    
                <?php
                // If comments are open or we have at least one comment, load up the comment template.
                if (comments_open() || get_comments_number()) :
                    comments_template();
                endif;
                ?>
    
            </article><!-- #post-## -->
    
        </div>
    
        <?php get_sidebar(); ?>
    
    </div>

    Ok, so what is the fix? I’m a bit of a noob and need exact directions.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to remove featured image from top of blog posts?’ is closed to new replies.