-
AuthorPosts
-
May 8, 2013 at 1:15 pm #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
May 8, 2013 at 7:16 pm #117978Hi 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
May 9, 2013 at 9:24 am #117979thank 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?
May 10, 2013 at 12:28 am #117980Hi,
Can you give us a link to your website? Did you add anything other than Devin’s code?
Regards,
Ismael
May 14, 2013 at 8:33 am #117981hi ismael! my website is not yet released online, can i email you login to see instead?
May 15, 2013 at 2:28 am #117982I believe that uses post categories for it so try a post that has at least one other category.
May 15, 2013 at 2:46 am #117983May 15, 2013 at 4:34 am #117984Is there a similar way to remove the featured image from Portfolio Item pages?
May 15, 2013 at 4:46 am #117985Hey!
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
May 17, 2013 at 2:49 pm #117986hi ismael! just wanted to see if you got my email? thanks!
May 18, 2013 at 6:59 am #117987Hi!
I tagged this thread for Ismael.
Best regards,
Peter
May 26, 2013 at 9:21 pm #117988i can’t get this solved it seems. will have to live without it then :)
best,
/n
May 27, 2013 at 2:10 am #117989Hi,
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
May 28, 2013 at 6:42 pm #117990ok 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.
May 29, 2013 at 2:15 am #117991Hi,
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
-
AuthorPosts
- The topic ‘How to remove featured image inside single post?’ is closed to new replies.