Forum Replies Created

Viewing 5 replies - 31 through 35 (of 35 total)
  • Thread Starter echappee06

    (@echappee06)

    OK, thanks !
    So I just have an issue with this filter which doesn’t work :

    function metaslider_add_full_url_to_slides($attributes, $slide, $slider_id) {
    	if (!strlen($attributes['href'])) {
    		$attributes['href'] = wp_get_attachment_url($slide['id']);
    	}
    	return $attributes;
    }
    add_filter('metaslider_flex_slider_anchor_attributes', 'metaslider_add_full_url_to_slides', 10, 3);

    Do you have any idea to help me make it work ?

    Thread Starter echappee06

    (@echappee06)

    Should I still use the Meta Slider Lightbox plugin ?
    I have this error message because no lightbox plugin is used and so I cannot check the lightbox checkbox : “Warning: MetaSlider Lightbox is installed but no supported lightbox plugin is active. ”

    I added this in my functions.php :

    function metaslider_add_full_url_to_slides($attributes, $slide, $slider_id) {
    if (!strlen($attributes[‘href’])) {
    $attributes[‘href’] = wp_get_attachment_url($slide[‘id’]);
    }
    return $attributes;
    }
    add_filter(‘metaslider_flex_slider_anchor_attributes’, ‘metaslider_add_full_url_to_slides’, 10, 3);

    function metaslider_add_rel_attribute_to_images($attributes, $slide, $slider_id) {
    $attributes[‘rel’] = ‘lightbox’;
    return $attributes;
    }
    add_filter(‘metaslider_flex_slider_image_attributes’, ‘metaslider_add_rel_attribute_to_images’, 10, 3);

    but no link is added to my images. The rel attribute works fine though.

    Thread Starter echappee06

    (@echappee06)

    Hi !
    I have limited experience in programming but I will try to do it with these filters, according to the documentation.
    Thanks !

    Hi,

    I had the same issue.
    You need to replace the line “$page_slug = ‘customer-files’;” with “$page_slug = ‘customer-private-files’;”.

    Thread Starter echappee06

    (@echappee06)

    Sorry, I cleared the comparison widget, and it solved the problem …
    It was a problem with my variations, that I had deleted.

Viewing 5 replies - 31 through 35 (of 35 total)