-
AuthorPosts
-
December 1, 2015 at 4:50 pm #545368
Hi I want to remove the thumbnails out of the postnav. avia post nav
– Left and richt buttons for posts and portfoliosIs there a function possible? Please no CSS solution I know CSS – for SEO issues I want to completeley remove it!
December 1, 2015 at 4:53 pm #545369Hi Rafíyel!
Please go to Appearance > Editor and open functions-enfold.php file and find
if($image) $tc2 = " <span class='entry-image'>{$image}</span>";
and comment it out as following
//if($image) $tc2 = " <span class='entry-image'>{$image}</span>";
Best regards,
YigitDecember 1, 2015 at 4:55 pm #545374Hei thanks for the fast answer… , but afte updating the theme it would be back?
Is there somethin i can do in my child function
December 1, 2015 at 5:04 pm #545378Hey!
You can copy the whole “avia_post_nav” functions from your functions-enfold.php file to functions.php file of your child theme :)
Best regards,
YigitDecember 1, 2015 at 6:20 pm #545444Must be possible with something like this:
https://kriesi.at/support/topic/next-and-previous-post-navigation-is-in-reversed-order/
December 1, 2015 at 6:25 pm #545450December 1, 2015 at 6:35 pm #545460First solution: Putting this one in the child theme of your Function
function avia_post_nav($same_category = false, $taxonomy = 'category') { global $wp_version; $settings = array(); $settings['same_category'] = $same_category; $settings['excluded_terms'] = ''; $settings['wpversion'] = $wp_version; //dont display if a fullscreen slider is available since they overlap if((class_exists('avia_sc_layerslider') && !empty(avia_sc_layerslider::$slide_count)) || class_exists('avia_sc_slider_full') && !empty(avia_sc_slider_full::$slide_count) ) $settings['is_fullwidth'] = true; $settings['type'] = get_post_type(); $settings['taxonomy'] = ($settings['type'] == 'portfolio') ? 'portfolio_entries' : $taxonomy; if(!is_singular() || is_post_type_hierarchical($settings['type'])) $settings['is_hierarchical'] = true; if($settings['type'] === 'topic' || $settings['type'] === 'reply') $settings['is_bbpress'] = true; $settings = apply_filters('avia_post_nav_settings', $settings); if(!empty($settings['is_bbpress']) || !empty($settings['is_hierarchical']) || !empty($settings['is_fullwidth'])) return; if(version_compare($settings['wpversion'], '3.8', '>=' )) { $entries['prev'] = get_previous_post($settings['same_category'], $settings['excluded_terms'], $settings['taxonomy']); $entries['next'] = get_next_post($settings['same_category'], $settings['excluded_terms'], $settings['taxonomy']); } else { $entries['prev'] = get_previous_post($settings['same_category']); $entries['next'] = get_next_post($settings['same_category']); } $entries = apply_filters('avia_post_nav_entries', $entries, $settings); $output = ""; foreach ($entries as $key => $entry) { if(empty($entry)) continue; $the_title = isset($entry->av_custom_title) ? $entry->av_custom_title : avia_backend_truncate(get_the_title($entry->ID),75," "); $link = isset($entry->av_custom_link) ? $entry->av_custom_link : get_permalink($entry->ID); $image = isset($entry->av_custom_image) ? $entry->av_custom_image : get_the_post_thumbnail($entry->ID, 'thumbnail'); $tc1 = $tc2 = ""; $class = $image ? "with-image" : "without-image"; $output .= "<a class='avia-post-nav avia-post-{$key} {$class}' href='{$link}' >"; $output .= " <span class='label iconfont' ".av_icon_string($key)."></span>"; $output .= " <span class='entry-info-wrap'>"; $output .= " <span class='entry-info'>"; $tc1 = " <span class='entry-title'>{$the_title}</span>"; if($image) $tc2 = " "; $output .= $key == 'prev' ? $tc1.$tc2 : $tc2.$tc1; $output .= " </span>"; $output .= " </span>"; $output .= "</a>"; } return $output; }
December 1, 2015 at 6:52 pm #545474Hi!
It does not seem like you have commented out the line i pointed out above. Is it commented out on your installation? If so, shall we mark the thread as resolved?
Regards,
YigitDecember 1, 2015 at 7:00 pm #545480hmm I hoped this is an entry like in the other solutions.
But I think – now as i posted – put the complete function in a childtheme functions.php could be a solution. So near by resolved :-) not the best solution!
-
AuthorPosts
- The topic ‘remove thumbnail in avia post nav’ is closed to new replies.