Viewing 4 posts - 1 through 4 (of 4 total)
-
AuthorPosts
-
March 17, 2017 at 9:09 pm #762728
My blog don’t have any images. http://705.987.myftpupload.com/test-2/
it showing some default image above title . I want to remove this. How to do that?
I want to remove it completely. Don’t want to hide it by css
March 17, 2017 at 10:33 pm #762766Hey pmwarman,
To remove this default image, go to the includes/ loop-index.php (don`t forget that is necessary to use it in the Theme Child) and delete this code at 122 to 147 line:
$icon = '<span class="iconfont" '.av_icon_string($post_format).'></span>'; if(strpos($blog_style, 'multi') !== false) { $gravatar = ""; $link = get_post_format_link($post_format); if($post_format == 'standard') { $author_name = apply_filters('avf_author_name', get_the_author_meta('display_name', $post->post_author), $post->post_author); $author_email = apply_filters('avf_author_email', get_the_author_meta('email', $post->post_author), $post->post_author); $gravatar_alt = esc_html($author_name); $gravatar = get_avatar($author_email, '81', "blank", $gravatar_alt); $link = get_author_posts_url($post->post_author); } $blog_meta_output = "<a href='{$link}' class='post-author-format-type'><span class='rounded-container'>".$gravatar.$icon."</span></a>"; } else if(strpos($blog_style, 'small') !== false) { $blog_meta_output = "<a href='{$link}' class='small-preview' title='{$featured_img_desc}'>".$slider.$icon."</a>"; } echo apply_filters('avf_loop_index_blog_meta', $blog_meta_output); echo "</div>";Let me know if it works :)
Best regards,
John TorvikMarch 18, 2017 at 10:39 am #762856Thanks it working. But Last line echo “</div>”; cannot removed. It i remove it, Content width reduced. I removed all lines except last one. It working. Now no image showing.
March 20, 2017 at 2:27 am #763413 -
AuthorPosts
Viewing 4 posts - 1 through 4 (of 4 total)
- The topic ‘How to Remove Feature image above Title of the Post?’ is closed to new replies.
