Forum Replies Created

Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • 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;
    	}
    }

    Hi 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
    Jonathan

    Hi 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
    Jonathan

    PS 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 :)

    thanks so much (login supplied)

    in reply to: Google Maps API error: MissingKeyMapError #653000

    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

    in reply to: Portfolio Grid weird after upgrade #365103

    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
    Jonathan

    in reply to: Copy the homepage template #280502

    Thank you

    I got it working nicely using your widget element and used Advanced Text Pro widget that allows PHP

    Great :)

    in reply to: Copy the homepage template #280290

    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

    in reply to: Copy the homepage template #280211

    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.

    in reply to: Portfolio ajax window change the close icon #279347

    Beautiful – that works – THANK YOU :)

    in reply to: ScrollTo issues on IOS #278007

    Thank you – I got that working :)

    in reply to: Caption underneath slider #277503

    SUPERB – thanks guys for the great support ! :)

    in reply to: Layout Builder for Custom Post Types #276957

    Thank you for confirming :)

    in reply to: Flex slider – split Caption Title and Text position #270893

    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?

    in reply to: Enfold – 100% full width for entire site #265885

    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 etc

    Here 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;
    }

Viewing 16 posts - 1 through 16 (of 16 total)