Forum Replies Created

Viewing 21 posts - 1 through 21 (of 21 total)
  • Author
    Posts
  • in reply to: Optimize search results #678032

    Hi Enfold!

    Any suggestions? Here is the update to my questions:

    1. How do I limit ajax search results with Relevanssi? The following code did not work for me:

     add_filter('avf_ajax_search_query', 'avf_modify_ajax_search_query', 10, 1);
    function avf_modify_ajax_search_query($search_parameters)
    {
    parse_str($search_parameters, $params);
    $params['numberposts'] = 3;
    $search_parameters = http_build_query($params);
    return $search_parameters;
    }

    2. As I told the ‘easy slider’ shortcode was not fully stripped. So my search results returned ‘Previous Next 1 2 3 4 5’ (depending on how much slided). I fixed this with the following code in functions.php

    add_filter('relevanssi_pre_excerpt_content', 'rlv_remove_flipbook');
    function rlv_remove_flipbook($content) {
     $content = preg_replace('/\[\/av_slideshow]/', '', $content);
     return $content;
    }

    3. I changed code in enfold-functions.php so my ajax results show the except. If possible I still would like to show highlight page content here as on my search result page. Is this possible?

    Thanks in advance for the support!

    in reply to: Autoplay video in masonry gallery #676634

    Hey Basilis!

    I know not all customization support is within the Enfold licence, but it should be great if you give some more explanation to my questions…

    1. Is it possible to add a custom class to masonry images?
    This function does not support masonry images:
    add_theme_support('avia_template_builder_custom_css');

    OR

    2. Can I change CSS below so only custom link images have a icon on front?

    .av-masonry-image-container:before {
    	content: '\E869'; 
        font-family: 'entypo-fontello';
        position: absolute;
        border-radius: 50px;
        background: #df8f04;
        height: 80px;
        width: 80px;
        line-height: 80px;
        left: 50%;
        top: 50%;
        margin: -40px 0 0 -40px;
        z-index: 500;
        text-align: center;
        color: #fff;
    }

    OR

    3. Are there other possibilities to show icon only on masonry grid images with a custom link?

    in reply to: Autoplay video in masonry gallery #676589

    As you can see in the picture below I added icons to the masonry grid. I would like to show the icons only if there is a custom link added to the image.
    1. Can I add a function so it’s possible to add a custom class to specific images in masonry?
    2. Or it it possible to show icons ONLY for images with a custom link to video?

    I hope one of these options is possible, so my cliënt can add images in masonry grid and give a custom class or custom link to the images so the ‘video play’ icon is shown up.

    Looking forward to your answer.

    .av-masonry-image-container:before {
    	content: '\E869'; 
        font-family: 'entypo-fontello';
        position: absolute;
        border-radius: 50px;
        background: #df8f04;
        height: 80px;
        width: 80px;
        line-height: 80px;
        left: 50%;
        top: 50%;
        margin: -40px 0 0 -40px;
        z-index: 500;
        text-align: center;
        color: #fff;
    }
    • This reply was modified 8 years, 2 months ago by lenvo.
    in reply to: Autoplay video in masonry gallery #676422

    So I would like to create something like this. It should be great if this is a possible tweak within the masonry grid, otherwise i have many grids to replace…looking forward to your answer!

    in reply to: Optimize search results #676328

    One more question about live search:

    3. I tried the code below for functions.php to limit ajax live search results when using relevanssi but not any of them work for me. How do I limit ajax search results using relevanssi?

    Not working on my website:

    add_filter('avf_ajax_search_query', 'avf_modify_ajax_search_query', 10, 1);
    function avf_modify_ajax_search_query($search_parameters)
    {
    parse_str($search_parameters, $params);
    $params['numberposts'] = 3;
    $search_parameters = http_build_query($params);
    return $search_parameters;
    }
    in reply to: Optimize search results #676323

    Hello Ismael,

    1. I would like to show highlight content instead of the page excerpt. As you can see in the first image of my last post not all shortcodes are stripped. How do I fix this?

    2. I’ve edited the excerpt function for ‘AJAX live search’ in functions-enfold.php as you can see below. The excerpt of the page is now shown in live search. But how do I show content like on my resultpage without shortcodes instead?

     $excerpt = trim(get_the_excerpt());
    
    	            if(!empty($post->post_excerpt))
    	            {					
    					$excerpt = apply_filters( 'the_excerpt', get_the_excerpt( $post->ID ), $post>post_excerpt,70," ","...", true, '', true );
    	                 //$excerpt =  apply_filters( 'avf_ajax_search_excerpt', avia_backend_truncate($post->post_excerpt,70," ","...", true, '', true) );
    	            }
    	            else
    	            {
    					$excerpt = apply_filters( 'the_excerpt', get_the_excerpt( $post->ID ), $post>post_excerpt,70," ","...", true, '', true );
    	                 //$excerpt = apply_filters( 'avf_ajax_search_no_excerpt', get_the_time($search_messages['time_format'], $post->ID), $post );
    	            }

    Looking forward for your reply.

    Best regards,

    Lennart

    in reply to: Optimize search results #674647

    Thanks for your reply Yigit ! Unfortunately, the problems have not been solved . I have been able to hide the buttons text of the search results page by converting them into widgets ( and exclude). However, still not all the shortcode stripped from my search results. See below for an example of visible shortcode content in serach results from Easy Slider pagination. How do I fix this so all shortcodes are stripped?

    My second question is about the ajax functionality. I’m still not managed to replace the shortcodes for highlighted text without shortcodes displayed. I’ve tried your solution but this did not work for me. Is this not a common problem when replacing default search by Relevanssi? I’m not sure if so, but I guess I have to customize AJAX functionality as seen below. Do you have a solution to strip the shortcodes from AJAX search?

    null

    Front-end:

    Thanks in advance for your help. Looking forward for your answers.

    • This reply was modified 8 years, 2 months ago by lenvo. Reason: Added image front-end AJAX functionality
    in reply to: Show logo in mobile menu #662364

    Hello Yigit,

    1. That did the trick :)! Is there a way to move the menu hide button on same place as the menu toggle? I tried CSS moving the #advanced_menu_hide but it’s not responsive anymore. Can you help to place hide icon on the same place as the menu toggle?

    2. There is a border only on the left side of the mobile menu. How do I apply a border on both sides?

    Thanks in advance for your help!

    in reply to: Relevance of search results #661171

    Hi Ismael!

    1. Perfect!
    2. Is there really no way to have same order of search results in AJAX and result page? This can be confusing for visitors. Is there a free plugin on the market which can help me for better search functionality?
    3. How do I style the view all results page? Is there a template available for this page?

    Thanks in advance for your help.

    in reply to: Mobile secondary menu and social icons positioning #661163

    Thanks Andy!

    This was a good start! :) I bit more customization was needed. Result:

    in reply to: Link to portfolio grid category filters #661160

    Thanks for your creative answer Yigit! :) But in that case I will have duplicate my frontpage with different portfolio grids (and filters)
    – Is there a way to not duplicate my frontpage for every filter for custom linking to?
    – Maybe it is possible to show only other portfolio column when linking to from different page?
    – Is there no way to create custom link to specific portfolio filter from other page?

    Hope you have more good ideas!

    Best regards,

    Lennart

    in reply to: Layerslider thumbnail navigation issues #661159

    Hello Andy,

    I changed lay-out. Topic can be closed. Thanks for your help.

    in reply to: Mobile secondary menu and social icons positioning #659724

    Thanks in advance for your help.

    in reply to: Relevance of search results #658756

    See attachment for information.

    in reply to: Mobile secondary menu and social icons positioning #658727

    Thanks in advance for your help!

    Screenshot for better understanding:
    http://prntscr.com/bqozuf

    in reply to: Contact Form — Check Box #658726

    Thanks for the solution Ismael! :)

    in reply to: AJAX-preview to images or text outside portfolio #619281

    Thanks Josue! :) That did the trick! Topic can be closed.

    in reply to: AJAX-preview to images or text outside portfolio #613692

    Hello Enfold,

    Any suggestions how to create a AJAX-preview window to a text link? I would really appreciate if you could help me make this possible! :)

    in reply to: Adding content area into Revolution slider #612258

    Hi Vinay! Thanks for your reply. I created dimaond images instead, topic can be closed.

    in reply to: Enfold productlist customization #612257

    Thanks for your answer Andy :) I decided to create product list without WooCommerce, topic can be closed.

    in reply to: AJAX-preview to images or text outside portfolio #612256

    Hello Enfold,

    Already made a few little steps!

    I found this information about deeplinking to the Portfolio AJAX. I’ve tried to make this work but unfortunately with no luck.

    1. I added code to functions.php bottom;
    2. I added link to portfolio item

    Issues:
    – Not sure if I’m linking to the portfolio items correctly
    – Not sure AJAX script works correctly, no AJAX preview window

    Hopefully you got a fine solution! :)

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