Forum Replies Created
-
AuthorPosts
-
October 23, 2016 at 5:44 pm in reply to: Post nav links always show but disabled when at first or last rather than hide #703020
Solved :)
by copying the function to my child theme and adding an extra check to see if a post exists and if not putput dummy << >> links that dont click
I also had to add the taxonomy name in the single-portfolio.php and to tell it to keep in same category only
echo avia_post_nav(true,'case-studies');
if(!function_exists('avia_post_nav')) { 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(); //if ($taxonomy) { //$settings['taxonomy'] = $taxonomy; //} else { $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; //echo '<div class="disabled-post-nav">'; //echo '<a class="avia-post-nav avia-post-next with-image" ><span class="entry-info-wrap"><span class="entry-info"><span class="entry-image"></span></span></a>'; //echo '</div>'; $output .= "<div class='disabled-post-nav'><a class='avia-post-nav avia-post-{$key} {$class}' >"; //$output .= " <span class='label iconfont' ".av_icon_string($key)."></span>"; $output .= " <span class='entry-info-wrap'>"; $output .= " <span class='entry-info'><span class='entry-image'></span>"; // $tc1 = " <span class='entry-title'>{$the_title}</span>"; if($image) //$tc2 = " <span class='entry-image'>{$image}</span>"; //$output .= $key == 'prev' ? $tc1.$tc2 : $tc2.$tc1; $output .= " </span>"; //$output .= " </span>"; $output .= "</a></div>"; } else { $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}' >";//.$same_category.$taxonomy; $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 = " <span class='entry-image'>{$image}</span>"; $output .= $key == 'prev' ? $tc1.$tc2 : $tc2.$tc1; $output .= " </span>"; $output .= " </span>"; $output .= "</a>"; } //end if JJA } return $output; } }
October 20, 2016 at 3:34 pm in reply to: Enfold Toggle overlay content below when opened rather than push it down the pag #701919Hi Nikko
Thank you so much for taking a look and taking the time to offer suggestions. Very helpful :)
I think I’ll go back to the client and advise against the toggles
kind regards
JonathanOctober 20, 2016 at 10:29 am in reply to: Enfold Toggle overlay content below when opened rather than push it down the pag #701779Hi guys
Can see you logged in a few times… any ideas? I have to get this site finished and live over weekend :)If not then maybe I can make those accordions in to lightboxes that pop up instead.
thanks
JonathanOctober 19, 2016 at 12:07 pm in reply to: Enfold Toggle overlay content below when opened rather than push it down the pag #701189PS is it possible that it pushes the footer area down but not other team members as am wondering if will look very weird if it shoots down below and past the footer. thanks so much :)
October 19, 2016 at 12:06 pm in reply to: Enfold Toggle overlay content below when opened rather than push it down the pag #701188thanks so much (login supplied)
It seems Google maps api is no longer free as off 22nd June for new installs?
http://googlegeodevelopers.blogspot.co.uk/2016/06/building-for-scale-updates-to-google.html
Hi Elliot
Thanks for the quick reply and yes weirdly that css no longer worked with the updated theme and I also had to set the overall site width and also remove 50px padding from .container so guess there were some changes from pre to post enfold 3.0
If I disabled plugin (Advanced Post Types Order) then that problem goes away with the portfolio grid not showing on certain taxonomies…. so unless you know of any conflicts with enfold and that plugin ill try to email the plugin author as weird its only happening on certain queries
thanks
JonathanThank you
I got it working nicely using your widget element and used Advanced Text Pro widget that allows PHP
Great :)
Thank you.
And if I did want to change the default page template in my child theme would I need to copy page.php or index.php from the enfold page template files?
It’s my homepage I’d want to clone
I actually wanted the promo boxes to appear inside the content area so am now wondering if better to add a widget area for my homepage and use advanced text widget that can output php… then drag one of your template builder widget area elements to where i want it.
Beautiful – that works – THANK YOU :)
Thank you – I got that working :)
SUPERB – thanks guys for the great support ! :)
Thank you for confirming :)
Hi
Thanks for the quick reply and I can see how that might work with a fixed height slider but we are using the full screen slider so the height changes on all screen sizes….Any ideas?
Hi
Thanks for the reply
Yes that link was an example of a site we want to build where the header (logo and menu) go to full width of the screen not just 1000px etcHere is our deo site http://ordovas.jacl.co.uk/sample-page/
We have the stretched layout but its max = 1210px so can we just change the css below to 100% to get a proper full width site?
.responsive_large .container {
width: 1210px;
} -
AuthorPosts