Forum Replies Created

Viewing 30 posts - 1 through 30 (of 47 total)
  • Author
    Posts
  • in reply to: Typewriter Animation Not Working in My Color Section #1294841

    Ismael,

    Sorry for the confusion, but I mentioned in ONLY worked outside the color selection element. I’m trying to get it to work within my color selection element & it’s not working.

    I created a test of the home page for you to review: https://3das.com/home-test/

    in reply to: Gallery Pop-Up / Lightbox Arrows #1287190

    Thank Yigit. Please close this post.

    For anyone else viewing this post, please go to https://kriesi.at/documentation/enfold/how-to-clear-the-cache/ & follow these steps. This time I forgot to disable “merging and compression”.

    in reply to: Remove date from blog grid layout #1252832

    Figured it out. For anyone running into this problem, follow these directions: https://kriesi.at/documentation/enfold/how-to-clear-the-cache/. Disable “merging and compression” for CSS and JS files from Enfold > Performance + clearing the cache fixed my issue.

    Please close this ticket.

    in reply to: Remove date from blog grid layout #1252641

    Thanks Jordan. I’ve tried and reviewed on multiple devices / browsers but still see the dates. Can someone else confirm they are not seeing these dates: https://www.screencast.com/t/cLMqn93LX

    Nope, I should be good. Please close this topic.

    Thank you Ismael. All seems to be working now.

    in reply to: Sorting Masonry Gallery Items Incorrectly After "Load More" #1181070

    Thank you, I have removed:

    'supports' => array('title', 'page-attributes')

    and have the “Custom Sort Order” code into functions.php (Enfold Child) & the avf_register_post_type_args code listed above single.php (Enfold).

    I don’t see any changes & now I don’t see any post attributes listed. Please list the PHP files I need to add this code to for any Enfold posts + any other code I need to add in.

    For reference, here is the code for single.php:

    <?php
    /*
    Template Post Type: post, page, product
    */
    	if ( !defined('ABSPATH') ){ die(); }
    	
    	global $avia_config;
    
    	/*
    	 * get_header is a basic wordpress function, used to retrieve the header.php file in your theme directory.
    	 */
    	 get_header();
    
    	$title  = __('Blog - Latest News', 'avia_framework'); //default blog title
    	$t_link = home_url('/');
    	$t_sub = "";
    
    	if(avia_get_option('frontpage') && $new = avia_get_option('blogpage'))
    	{
    		$title 	= get_the_title($new); //if the blog is attached to a page use this title
    		$t_link = get_permalink($new);
    		$t_sub =  avia_post_meta($new, 'subtitle');
    	}
    
    	if( get_post_meta(get_the_ID(), 'header', true) != 'no') echo avia_title(array('heading'=>'strong', 'title' => $title, 'link' => $t_link, 'subtitle' => $t_sub));
    	
    	do_action( 'ava_after_main_title' );
    
    //added for ordering attribute for post pages - BZ
    function avf_register_post_type_args($args, $post_type){
    
        if ($post_type == 'portfolio' || $post_type == 'post'){
            $args['supports'] = 'page-attributes';
        }
    
        return $args;
    }
    add_filter('register_post_type_args', 'avf_register_post_type_args', 10, 2); //added for ordering attribute for post pages - BZ
    
    ?>
    
    		<div class='container_wrap container_wrap_first main_color <?php avia_layout_class( 'main' ); ?>'>
    
    			<div class='container template-blog template-single-blog '>
    
    				<main class='content units <?php avia_layout_class( 'content' ); ?> <?php echo avia_blog_class_string(); ?>' <?php avia_markup_helper(array('context' => 'content','post_type'=>'post'));?>>
    
                        <?php
                        /* Run the loop to output the posts.
                        * If you want to overload this in a child theme then include a file
                        * called loop-index.php and that will be used instead.
                        *
                        */
                            get_template_part( 'includes/loop', 'index' );
    						
    						$blog_disabled = ( avia_get_option('disable_blog') == 'disable_blog' ) ? true : false;
    						
    						if(!$blog_disabled)
    						{
    	                        //show related posts based on tags if there are any
    	                        get_template_part( 'includes/related-posts');
    	
    	                        //wordpress function that loads the comments template "comments.php"
    	                        comments_template();
    						}
                        ?>
    
    				<!--end content-->
    				</main>
    
    				<?php
    				$avia_config['currently_viewing'] = "blog";
    				//get the sidebar
    				get_sidebar();
    
    				?>
    
    			</div><!--end container-->
    
    		</div><!-- close default .container_wrap element -->
    
    <?php 
    		get_footer();

    Ismael,

    I have two main areas where I use the masonry elements:

    https://3das.com/3d-projects/ – based off post order using masonry
    https://3das.com/gallery/ – based off masonry gallery.

    Both are being affected by the plugin & the code snippet described above and I will need to get the order field on my posts. Where should I put 'supports' => array('title', 'page-attributes'), in single.php? Are there more steps I need to take?

    in reply to: Sorting Masonry Gallery Items Incorrectly After "Load More" #1179607

    OK, I understand the page order but I’ll need some coaching on creating the post orders as I typically don’t do much programming.

    <?php
    /*
    Template Name: My custom layout
    Template Post Type: post, page, product
    */

    and then add:
    'supports' => array('title', 'page-attributes'),
    I did this in the single.php file & the post attributes menu does show up on the blog pages but without the page order. If I select “My custom layout”, it breaks the page.

    Ultimately I would like to add the code in my child theme. What steps am I missing and do I add a single.php in my child theme with only the code I am adding in (like I do with functions.php)?

    • This reply was modified 4 years, 2 months ago by brianzajac.

    Ismael,

    Thank you for looking into this. The reason I used the plugin was due to the directions below not being clear on what to do after you have installed the code & saved the template page(s). Can you tell me how I can sort my posts after I configure the order/orderby settings?

    Directions from https://kriesi.at/documentation/enfold/blog-post/#toggle-id-26:

    How to add an order/orderby option to the blog/post slider/portfolio/masonry grid element
    Some users asked us how they can set a different order for their blog/post slider/portfolio/masonry grid elements. The filter solution here: https://kriesi.at/documentation/enfold/change-the-sort-order-of-portfolio-elements/ is not flexible because it affects all elements and all custom queries. Since Enfold 2.7.1 it’s possible to add some custom order/orderby options to the blog/post slider/portfolio/masonry grid settings which enable you to change the sort order for each element independently. Insert the code below into the child theme functions.php file and save the file. Then go to the blog/post slider/portfolio/masonry grid element settings screen, scroll to the bottom of the options window and configure the order/orderby settings. Then save the template and page and the posts should be displayed based on the new sort order.

    Attention – if you use the “Random” sort option, do not use it in combination with the “pagination” setting. Otherwise, you risk that the user just sees the same posts over and over again because WordPress doesn’t know which posts were used on the other pages.

    Ismael,

    Thank you. Not sure what you exactly mean by reset but I did try to update the page after removing the code w/o sorting first & then updating after sorting a gallery item.

    Removing the script did not work. I tried clearing the cache and updating the page through the editor. Removing the script also rearranges my posts. For example, the https://3das.com/3d-projects/#casestudies section should be listed by cities first but when I remove the script they are in a completely different order.

    The code I use is below for reference:

    // Custom Sort Order
    if(!function_exists('avia_custom_query_extension'))
    {
        function avia_custom_query_extension($query, $params)
        {
            global $avia_config;
            if(!empty($avia_config['avia_custom_query_options']['order']))
            {
                $query['order'] = $avia_config['avia_custom_query_options']['order'];
            }
    
            if(!empty($avia_config['avia_custom_query_options']['orderby']))
            {
                $query['orderby'] = $avia_config['avia_custom_query_options']['orderby'];
            }
    
            unset($avia_config['avia_custom_query_options']);
    
            return $query;
        }
    
        add_filter('avia_masonry_entries_query', 'avia_custom_query_extension', 10, 2);
        add_filter('avia_post_grid_query', 'avia_custom_query_extension', 10, 2);
        add_filter('avia_post_slide_query', 'avia_custom_query_extension', 10, 2);
        add_filter('avia_blog_post_query', 'avia_custom_query_extension', 10, 2);
        add_filter('avf_magazine_entries_query', 'avia_custom_query_extension', 10, 2);
    
        add_filter('avf_template_builder_shortcode_elements','avia_custom_query_options', 10, 1);
        function avia_custom_query_options($elements)
        {
            $allowed_elements = array('av_blog','av_masonry_entries','av_postslider','av_portfolio','av_magazine');
    
            if(isset($_POST['params']['allowed']) && in_array($_POST['params']['allowed'], $allowed_elements))
            {
                $elements[] = array(
                    "name" => __("Custom Query Orderby",'avia_framework' ),
                    "desc" => __("Set a custom query orderby value",'avia_framework' ),
                    "id"   => "orderby",
                    "type" 	=> "select",
                    "std" 	=> "",
                    "subtype" => array(
                        __('Default Order',  'avia_framework' ) =>'',
                        __('Title',  'avia_framework' ) =>'title',
                        __('Random',  'avia_framework' ) =>'rand',
                        __('Date',  'avia_framework' ) =>'date',
                        __('Author',  'avia_framework' ) =>'author',
                        __('Name (Post Slug)',  'avia_framework' ) =>'name',
                        __('Modified',  'avia_framework' ) =>'modified',
                        __('Comment Count',  'avia_framework' ) =>'comment_count',
                        __('Page Order',  'avia_framework' ) =>'menu_order')
                );
    
                $elements[] = array(
                    "name" => __("Custom Query Order",'avia_framework' ),
                    "desc" => __("Set a custom query order",'avia_framework' ),
                    "id"   => "order",
                    "type" 	=> "select",
                    "std" 	=> "",
                    "subtype" => array(
                        __('Default Order',  'avia_framework' ) =>'',
                        __('Ascending Order',  'avia_framework' ) =>'ASC',
                        __('Descending Order',  'avia_framework' ) =>'DESC'));
            }
    
            return $elements;
        }
    
        add_filter('avf_template_builder_shortcode_meta', 'avia_custom_query_add_query_params_to_config', 10, 4);
        function avia_custom_query_add_query_params_to_config($meta, $atts, $content, $shortcodename)
        {
            global $avia_config;
            if(empty($avia_config['avia_custom_query_options'])) $avia_config['avia_custom_query_options'] = array();
    
            if(!empty($atts['order']))
            {
                $avia_config['avia_custom_query_options']['order'] = $atts['order'];
            }
    
            if(!empty($atts['orderby']))
            {
                $avia_config['avia_custom_query_options']['orderby'] = $atts['orderby'];
            }
    
            return $meta;
        }
    }
    
    in reply to: Sorting Masonry Gallery Items Incorrectly After "Load More" #1175215

    Basilis,

    Yes, many times. Did you see different results?

    Hello Rikard, the theme has been updated to 4.7.1 but the issue is still unresolved.

    in reply to: Photos Above Text on Mobile #1159744

    Brilliant! Thanks Mike, I didn’t know “el-first” & “el-last” even existed. All looks great now & I understand what to do when I add more content in the future.

    in reply to: Photos Above Text on Mobile #1159306

    Thanks Mike,

    That worked for one page, but when I tried to apply to other pages, I can’t seem to replicate what you did. These are the 3 pages I need to update + I’ve changed them all to include color sections:
    https://3das.com/interior-design/
    https://3das.com/exterior-architectural-solutions/
    https://3das.com/developer-realtor/

    Here’s what I’ve done in the CSS, but I’m no coder. Please let me know what I’m doing incorrectly. Thanks!

    /*--- Mobile Layout Right column fix Start---*/
    @media only screen and (max-width: 767px) { 
      #top.page-id-2927 .post-entry-2927 .entry-content-wrapper {
      display: flex !important; 
      flex-wrap: wrap !important; 
      }
      #top.page-id-2927 .post-entry-2927 .flex_column.first.avia-builder-el-9 {
          order: 2 !important;  
    }
      #top.page-id-2927 .post-entry-2927 .flex_column.avia-builder-el-12 {
          order: 1 !important;  
    }
      #top.page-id-2927 .post-entry-2927 .flex_column.first.avia-builder-el-22 {
          order: 4 !important;  
    }
      #top.page-id-2927 .post-entry-2927 .flex_column.avia-builder-el-26 {
          order: 3 !important;  
    }
      
      #top.page-id-2950 .post-entry-2950 .entry-content-wrapper {
      display: flex !important; 
      flex-wrap: wrap !important; 
      }
      #top.page-id-2950 .post-entry-2950 .flex_column.first.avia-builder-el-9 {
          order: 2 !important; 
    }
      #top.page-id-2950 .post-entry-2950 .flex_column.avia-builder-el-12 {
          order: 1 !important;  
    }
      #top.page-id-2950 .post-entry-2950 .flex_column.first.avia-builder-el-22 {
          order: 4 !important;  
    }
      #top.page-id-2950 .post-entry-2950 .flex_column.avia-builder-el-26 {
          order: 3 !important;  
    }
    
      #top.page-id-2982 .post-entry-2982 .entry-content-wrapper {
      display: flex !important; 
      flex-wrap: wrap !important;  
    }
      #top.page-id-2982 .post-entry-2982 .flex_column.first.avia-builder-el-9 {
          order: 2 !important;  
    }
      #top.page-id-2982 .post-entry-2982 .flex_column.avia-builder-el-12 {
          order: 1 !important; 
    }
      #top.page-id-2982 .post-entry-2982 .flex_column.first.avia-builder-el-22 {
          order: 4 !important;  
    }
      #top.page-id-2982 .post-entry-2982 .flex_column.avia-builder-el-26 {
          order: 3 !important;  
    }
    }
    
    /*--- Mobile Layout Right column fix End---*/
    in reply to: Photos Above Text on Mobile #1152119

    Victoria,
    Please see screenshot at https://www.screencast.com/t/fmfMF0zaYVxj

    in reply to: Home Page Full-Width Image & Header Issue #1000742

    Victoria,

    Perfect, thank you!

    in reply to: Hide / Remove Bottom Border in Color Section #903311

    Thank you, that worked well. Have a great weekend.

    in reply to: Hide / Remove Bottom Border in Color Section #902873

    Not sure what happened, but I see it is now up.

    in reply to: Huge Spacing Problems When Updating to 4.2 #897657

    Hello Mike,
    I tried the manual update and it didn’t work. But when I updated WP to 4.9.2 after, that seemed to fix the issues. Feel free to close the thread and thank you for your help.

    in reply to: Huge Spacing Problems When Updating to 4.2 #896421

    Hello Mike,

    Unfortunately, disabling plugins and clearing the cache ideas does not work. I am almost positive it is the theme update as it is the only component that was updated when this issue happened. Please advise.

    in reply to: Change Font Color of Contact Form Drop-Down #702425

    Fixed it. Changed the font to a 50 X 50 transparent image & updated this line of code:

    #advanced_menu_toggle, #advanced_menu_hide {
    margin-top: -20px;
    }
    in reply to: Change Font Color of Contact Form Drop-Down #702389

    I almost have it. Turns out a piece of CSS code that was suggested here to remove the logo is also creating the drop-down color issue & making the “Brian & Anna” text title huge. That code is:

    @media only screen and (max-width: 767px) {
    .responsive .logo { display: none !important; } 

    Is there another way I can remove the logo and move up the menu on mobile?

    in reply to: Previous Theme to Download #458050

    Any updates? We’re now starting to look into other themes if we can’t find a solution.

    in reply to: Previous Theme to Download #457456
    This reply has been marked as private.
    in reply to: Layer Slider Not at Top on Mobile #337964

    Works great, thanks!

    in reply to: Main Menu Touching Logo + Custom Background Image Issue #333334

    Josue,

    Thanks for the suggestion. I agree and have added the code to the site.

    in reply to: Main Menu Touching Logo + Custom Background Image Issue #332647

    Yigit,

    1-fixed, thanks!
    2-Cannot produce as when I scroll down on my S3, the biographies (photos and text) flicker on for a split second & then are covered over by the background image (bottom area with the ID Specialists watermark along with the white background above it). If possible, can you have a few employees check this specific page? It may just be my specific phone of issue & if I can get a few people to look on multiple Android / IOS devices, then I’ll consider this issue resolved.

    Thanks,
    Brian

    in reply to: Enfold Latest Portfolio Custom Link Won't Work #331033

    Thanks Kriesi. Just looked at all the new major update – W-O-W!

Viewing 30 posts - 1 through 30 (of 47 total)