Forum Replies Created

Viewing 30 posts - 1 through 30 (of 70 total)
  • Author
    Posts
  • in reply to: Change blog article widget #1193463

    Ok, thanks. figured it out. It was in the postslider.php by the way.
    Last question. How can I echo the category before the date?

    This is the part of the date now:

    if( ( $show_meta && ! empty( $excerpt ) ) || in_array( $show_meta_data, array( 'always', 'on_empty_content' ) ) )
    {
      $meta  = "<div class='slide-meta'>";
    		if ( $commentCount != "0" || comments_open($the_id) && $entry->post_type != 'portfolio')
    		{
    			$link_add = $commentCount === "0" ? "#respond" : "#comments";
    			$text_add = $commentCount === "1" ? __('Comment', 'avia_framework' ) : __('Comments', 'avia_framework' );
    			$meta .= "<div class='slide-meta-comments'><a href='{$link}{$link_add}'>{$commentCount} {$text_add}</a></div><div class='slide-meta-del'>/</div>";
    		}
                            $markup = avia_markup_helper(array('context' => 'entry_time','echo'=>false, 'id'=>$the_id, 'custom_markup'=>$custom_markup));
    			$meta .= "<time class='slide-meta-time updated' $markup>" .get_the_time(get_option('date_format'), $the_id)."</time>";
    			$meta .= "</div>";
    						
    			if( strpos($blogstyle, 'elegant-blog') === false )
    			{
    			$output .= $meta;
    			$meta = "";
    			}
    }

    What do I need to add to it to get the output like this:
    Category | Date

    I only want to show the category without the parent category

    • This reply was modified 4 months, 3 weeks ago by  Jarmo.
    in reply to: Change blog article widget #1192060

    See private content.
    Also I want the whole <article> to be the link to the post instead of only the picture and the title

    in reply to: Change blog article widget #1192040

    Hi,

    This is how it looks now:
    https://ibb.co/kS2VyTf

    I want it to look like this:
    https://ibb.co/SyzSNbV

    ‘diensten’ = post category

    So I am looking for any hook to make it like the last link.

    Hi,

    I am a colleague of Janine.
    Right now we are using the following function:

    
    add_filter('avf_masonry_loop_prepare','avia_change_default_link', 10, 2);
    function avia_change_default_link($loop, $entries)
    {
    	foreach($entries->posts as $key => $entry)
        {
            if($entry->post_type == "portfolio")
            {
    			$opties = get_field('opties', $loop['ID']);
    		
    			foreach( $opties as $optie ) {
    				$waarde .= "<li>".$optie."</li>";
    			}
    				
                $more 	 		 =  "<div class='beschrijf' itemprop='text'><ul>".$waarde."</ul></div><div class='masonry-more-link-arrow vdwerfknopgrid'><span>ONTDEK</span></div>";
    			$loop['content'] =   avia_backend_truncate($entry->post_content, apply_filters( 'avf_masonry_excerpt_length' , 60) , apply_filters( 'avf_masonry_excerpt_delimiter' , " "), "…", true, '') . $more;
    
            }
        }
    
        return $loop;
    }
    

    It shows the selected checkboxes from the ACF fields correct but it keeps looping.
    See the page in the private content (last machine).
    It shows Tracks, Vario, Laag verbruik.
    After this 3 it needs to stop but it is repeating the selected checkboxes.

    in reply to: Vimeo video isn't displayed #1158826

    Settings were correct. Tried to re-upload the video so I would get a new link. Changing the link in the site fixed the issue. Pretty weird but it is fixed.

    in reply to: Vimeo video isn't displayed #1157814

    Hi,

    Yes it was already set to Always Load Videos.

    in reply to: Vimeo video isn't displayed #1157203

    Hi,

    I have things like lazy load on the site but turned it all off to check it but doesn’t have any effect.

    Hi,

    Yeah that is a solution but not the correct solution.
    If I update my theme it will erase all the CSS. There has to be a solution for my child css.

    in reply to: Vimeo video isn't displayed #1156061

    Hi, on a other page there are a lot of videos without any problem (see private content).
    So could it be something else?

    Hi,

    Yeah it is another website but the same problem.
    I have now inserted my css into the quick css to make it work

    Gave you a login in the private content. The performance setting is turned off but my CSS isn’t load on the front-end so hope you can fix this.

    in reply to: Exclude current blog post function doesn't work #1147856

    Hi Nikko,

    In the private content I pasted the credentials.

    Hi,

    I get what you say but if I set the performance settings on disable and save and refresh without caching it doesn’t have any effect.
    That is just the whole problem.

    in reply to: Exclude current blog post function doesn't work #1143611

    Hi,

    I updated the other site to 4.6.1 and there it is still working.
    Maybe something else?

    (1) https://ibb.co/Y8b2FHL -> This are my settings normally when developing, always works
    (2) https://ibb.co/XtS38js -> This is how my site looks then (no style.css from child theme loaded)

    (3) https://ibb.co/nmCyB2v -> If I do my settings like this the style.css of my child theme is loaded
    (4) https://ibb.co/KN8ShLB -> Front-end loaded with style.css

    But when merging is enabled (3) and I change something in style.css I need to disable the merging (1) and save.
    Then refresh the front-end looks like (2). Then need to enable merging again (3) and refresh the front-end to get it right on the front-end (4).

    Pretty strange bug.

    Hi,

    I know how to implement the code in the head but how do I turn it on or off with the cookie modal popup because visitors need to be able to disable the facebook pixel tracking.

    Regards,
    Jarmo

    Yes I have installed version 4.6.1 but where do I place the code?
    It is not very clear to me now.

    For example this code:

    <!-- Facebook Pixel Code --> <script> !function(f,b,e,v,n,t,s) {if(f.fbq)return;n=f.fbq=function(){n.callMethod?
      n.callMethod.apply(n,arguments):n.queue.push(arguments)}; if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
      n.queue=[];t=b.createElement(e);t.async=!0;
      t.src=v;s=b.getElementsByTagName(e)[0];
      s.parentNode.insertBefore(t,s)}(window, document,'script', 'https://connect.facebook.net/en_US/fbevents.js');
      fbq('init', 'your-pixel-id-goes-here');
      fbq('track', 'PageView'); </script> <noscript> <img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=your-pixel-id-goes-here&ev=PageView&noscript=1"/> </noscript> <!-- End Facebook Pixel Code -->
    in reply to: Configure Tag Manager in Cookie settings after update to 4.6.1 #1136985

    Another question, how to deal with a Facebook Pixel?

    in reply to: Configure Tag Manager in Cookie settings after update to 4.6.1 #1136984

    Hi Ismael,

    But where do I place the mentioned script?

    Regards,
    Jarmo

    in reply to: Coupon field in cart widget #1115483

    Hi,

    I added the coupon field to my mini-cart.php in my child theme. Found out that I needed to erase my browse data to see the changes.
    You can find the page in private content of my first question. You can add a product to your cart and use the coupon I mentioned in the private content to see how the flow is right now.

    I added this to my mini-cart.php code:

    <form class="checkout_coupon woocommerce-form-coupon" method="post">
            <p style="color:white;"><?php esc_html_e( 'Kortingscode', 'woocommerce' ); ?></p>
            <p class="form-row form-row-first">
                <input type="text" name="coupon_code" class="input-text" placeholder="<?php esc_attr_e( 'Coupon code', 'woocommerce' ); ?>" id="coupon_code" value="" />
            </p>
            <p class="form-row form-row-last">
                <button type="submit" class="button" name="apply_coupon" value="<?php esc_attr_e( 'Apply coupon', 'woocommerce' ); ?>"><?php esc_html_e( 'Apply coupon', 'woocommerce' ); ?></button>
            </p>
            <div class="clear"></div>
        </form>

    Normally if you add the coupon in the cart page and remove it. It happens with AJAX and does not reload the page. Can I achieve this here too because now it reloads the page :(

    in reply to: Coupon field in cart widget #1114861

    I need to modify the ‘mini-cart.php’ file. I did it like /enfold-child/woocommerce/cart/mini-cart.php.
    If I make any changes in it there aren’t any changes on the front-end. How is this possible?

    This reply has been marked as private.

    The API settings are as follows:

    – No App-restrictions
    – No API-restrictions

    Hi,

    With the plugin it still doesn’t load properly.
    But the main problem is the enfold settings says it is a valid code but it still doesn’t work.

    Hi,

    I made an admin account for you.
    Credentials are in the private content.

    I installed the plugin so you can check what happens when you deactivate the plugin.

    Hi Mike,
    It needs to auto detect which elements has the same category.
    So when the customer adds a category I don’t have so edit the code again.

    in reply to: Enfold Products Grid, Category display #1087007

    Also I wan to echo it like <p class="ticketgroup">".single_term_title()."</p>

    • This reply was modified 1 year, 4 months ago by  Jarmo.
    in reply to: Enfold Products Grid, Category display #1087003

    Hi,

    Now it shows only the main category title.
    My products have a main category and a subcategory of that main category.
    I want to show the subcategory in it, is that possible too?

    in reply to: Execute jQuery onload lightbox #1079056

    Hi Nikko,

    I know how that function works. Already using it but in that function I want to execute some jQuery when mfp-content is being displayed.
    So when the lightbox divs appeared in the code.

    Hi,

    You can overwrite the following file if you are using a child-theme:
    wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/productslider/productslider.php

    On line 432:

    
    echo "<p>".__( 'No products found which match your selection.', 'woocommerce' )."</p>";
    

    Replace it with:

    
    echo "<p>".__( 'YOUR OWN TEXT.', 'woocommerce' )."</p>";
    

    Then place it in your child-theme like:
    enfold-child/shortcodes/productslider.php

    After adding use this function in your functions.php:

    add_filter('avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1);
    function avia_include_shortcode_template($paths)
    {
      $template_url = get_stylesheet_directory();
          array_unshift($paths, $template_url.'/shortcodes/');
    
      return $paths;
    }
    • This reply was modified 1 year, 5 months ago by  Jarmo.
    • This reply was modified 1 year, 5 months ago by  Jarmo.
Viewing 30 posts - 1 through 30 (of 70 total)