Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #22950

    hi!

    i’d like to remove the featured image that is now shown above title inside single post. i’d like the featured image only seen on blog start page and single post to start with title and post content. where/how can i do that?

    best,

    /n

    #117978

    Hi madebynoemi,

    Try adding the following CSS to your Quick CSS (located under the Styling Tab in the theme options) or the custom.css file in the css folder of your theme files:

    #top.single-post .big-preview.single-big {
    display: none;
    }

    This is the most straightforward way of removing the featured media are on the single posts.

    Regards,

    Devin

    #117979

    thank you devin! another question though – it seems like the browse function got disabled that existed before. how can i add that so the reader can browse forward/backward in a single post?

    #117980

    Hi,

    Can you give us a link to your website? Did you add anything other than Devin’s code?

    Regards,

    Ismael

    #117981

    hi ismael! my website is not yet released online, can i email you login to see instead?

    #117982

    I believe that uses post categories for it so try a post that has at least one other category.

    #117983

    Hi,

    Please send them on //…

    Include this thread on your email.

    Regards,
    Ismael

    #117984

    Is there a similar way to remove the featured image from Portfolio Item pages?

    #117985

    Hey!

    Yes, open up wp-contentthemesenfoldincludesloop-portfolio-single.php and delete

    $thumb = get_the_post_thumbnail(get_the_ID(), $avia_config['size']);

    if($thumb) echo "<div class='page-thumb'>{$thumb}</div>";

    Best regards,

    Peter

    #117986

    hi ismael! just wanted to see if you got my email? thanks!

    #117987

    Hi!

    I tagged this thread for Ismael.

    Best regards,

    Peter

    #117988

    i can’t get this solved it seems. will have to live without it then :)

    best,

    /n

    #117989

    Hi,

    I’m sorry but I didn’t get your email. Although you can hide featured images via CSS.

    This is for the single blog post.

    .single .big-preview.single-big {
    display: none;
    }

    And this is for the portfolio items. This will only work if you set the featured image using the default wordpress Set Featured Image feature.

    .single-portfolio .page-thumb {
    display: none;
    }

    Regards,

    Ismael

    #117990

    ok ismael! that i got solved. my second question was: it seems like the browse function got disabled that existed before. how can i add that so the reader can browse forward/backward in a single post? i’d like the reader to see links or <> to previous and next post.

    #117991

    Hi,

    Can you give us a link to your website?

    Please check functions.php. Do you have this line of code? 281-321

    if(!function_exists('avia_post_nav'))
    {
    function avia_post_nav($same_category = false)
    {
    if(!is_singular() || is_post_type_hierarchical(get_post_type())) return;
    //if(get_post_type() === 'portfolio') return;

    global $avia_config;

    $same_category = apply_filters('avia_post_nav_categories', $same_category);
    $entries['prev'] = get_previous_post($same_category);
    $entries['next'] = get_next_post($same_category);
    $output = "";

    foreach ($entries as $key => $entry)
    {
    if(empty($entry)) continue;

    $tc1 = $tc2 = "";
    $link = get_permalink($entry->ID);
    $image = get_the_post_thumbnail($entry->ID, 'thumbnail');
    $class = $image ? "with-image" : "without-image";

    $output .= "<a class='avia-post-nav avia-post-{$key} {$class}' href='{$link}' >";
    $output .= " <span class='label iconfont'>".$avia_config['font_icons'][$key]."</span>";
    $output .= " <span class='entry-info-wrap'>";
    $output .= " <span class='entry-info'>";
    $tc1 = " <span class='entry-title'>".avia_backend_truncate(get_the_title($entry->ID),75," ")."</span>";
    if($image) $tc2 = " <span class='entry-image'>{$image}</span>";
    $output .= $key == 'prev' ? $tc1.$tc2 : $tc2.$tc1;
    $output .= " </span>";
    $output .= " </span>";
    $output .= "</a>";
    }
    return $output;

    //add this line for fake. never gets executed but makes the theme pass Theme check
    if(1==2){paginate_links(); posts_nav_link(); next_posts_link(); previous_posts_link();}
    }
    }

    Regards,

    Ismael

Viewing 15 posts - 1 through 15 (of 15 total)
  • The topic ‘How to remove featured image inside single post?’ is closed to new replies.