Hi, everyone. I’m having a hard time installing Foundation in a WordPress website I’m developing. I’ve tried the following code:
function enqueue_foundation() {
wp_deregister_script(‘jquery’);
wp_enqueue_style( ‘foundation-css’, get_template_directory_uri() . ‘/css/foundation.min.css’);
//wp_enqueue_script( ‘foundation-js’, get_template_directory_uri() . ‘/js/foundation.min.js’);
wp_enqueue_script( ‘foundation-jquery’, get_template_directory_uri() . ‘/js/vendor/jquery.js’);
wp_enqueue_script( ‘foundation-js’, get_template_directory_uri() . ‘/js/foundation.min.js’, array(‘foundation-jquery’));
}
add_action(‘wp_enqueue_scripts’, ‘enqueue_foundation’);
However, this is breaking the site’s layout. I’ve also tried using a plugin to add the CSS and the JavaScript files from a CDN, but this also doesn’t solve the problem.
How should I proceed? Thanks in advance.
]]>Hi, Great plugin!
Is it possible for the gallery to display the ‘Large’ version of the image rather than the full size?
Don’t want to give away full size images
https://www.ads-software.com/plugins/zurb-foundation-5-clearing-gallery/
]]>Any suggestions for getting this to work on a multisite site with mapped domains?
When a user clicks on the thumbnail, it opens the image and not the lightbox, as the images are being served via the host url via the shortcode function.
For example, [gallery columns="6" ids="6034,6035,6036" orderby="rand"]
Will display images with a url of example.com/wp-content/uploads/sites/2/...
When in order for the lightbox js to kick in, they need to be something like: mywebsite.com/wp-content/uploads/sites/2/...
A live example can be seen here
Thoughts?
https://www.ads-software.com/plugins/zurb-foundation-5-clearing-gallery/
]]>Plugin hides gallery and does not show any photos.
https://www.ads-software.com/plugins/zurb-foundation-5-clearing-gallery/
]]>Hi, I’m using this Plugin with Foundation 5 and it works like charm (thanks!).
The thing I can’t figure out is, if there is a way to show the caption underneath the thumbnails.
In a native WP Gallery, if there’s caption added, then it will be displayed on the site the where the gallery is inserted (underneath the thumbnails).
With the clearing plugin it’s not. Is there a way to show it?
https://www.ads-software.com/plugins/zurb-foundation-5-clearing-gallery/
]]>Hello. Great plugin you made, so I want to say – thank you.
I wandering is it possible to set gallery columns different for portrait or landscape mode?
Best Regards,
Denis
https://www.ads-software.com/plugins/zurb-foundation-5-clearing-gallery/
]]>I find your plugin really interesting.
Currently once the plugin is activated all posts with gallery shortcode use the plugin’s behaviour?
Is there a way of setting the plugin to use either the Clearing Gallery behaviour or standard WordPress Gallery behaviour?
https://www.ads-software.com/plugins/zurb-foundation-5-clearing-gallery/
]]>Plugin works great unless I’m loading php content via data-interchange.
I’m including the require($_SERVER[‘DOCUMENT_ROOT’].’/wp-load.php’); at the beginning of my php files that data-interchange is flipping between. All other WordPress stuff is running fine. The gallery shortcode is even rendered, but just as a regular wordpress gallery.
If I pull all of the content from my “medium.php” out and just paste it into the php file that is utilizing data-interchange the gallery works as expected. Is there something else I need to require at the beginning of my interchange files?
When I look at the html that is being spit out the interchange version of the gallery does include the carousel div. Not sure if that helps. Appreciate any thoughts on this… Thanks.
https://www.ads-software.com/plugins/zurb-foundation-5-clearing-gallery/
======UPDATE=======
So after pulling my hair out for the better part of an hour I found the solution. Needed to put the following in my .js
$(“#interchange-element”).on(“replace”, function() {
$(document).foundation();
});
Hi, thanks for the great plugin. I am having a problem though with the carousel thumbs, they group in the number of columns selected. E.g if my gallery has 4 columns, I will only see 4 thumbs, the rest being hidden underneath the screen in rows of 4.
Thanks
https://www.ads-software.com/plugins/zurb-foundation-5-clearing-gallery/
]]>