Comments (1)
Remove all references to magnific popup in functions.php, scripts.js, and the sass include.
functions.php
// Magnific Popup (lightbox)
wp_enqueue_script( "scaffolding-magnific-popup-js", get_stylesheet_directory_uri() . "/libs/js/jquery.magnific-popup.min.js", array( "jquery" ), "1.0.0", true );
js/scripts.js
// Lightbox
if ($.fn.magnificPopup) {
$image_selector = 'a[href$=".jpg"], a[href$=".jpeg"], a[href$=".png"], a[href$=".gif"]';
// single image popup
$($image_selector).each(function(){
if ($(this).parents(".gallery").length == 0) {
$(this).magnificPopup({type:"image"});
}
});
// gallery popup
$(".gallery").each(function() {
$(this).magnificPopup({
type: "image",
delegate: $image_selector,
gallery: {
enabled: true,
preload: [1,2]
},
image: {
titleSrc: function(item) {
return item.el.parents(".gallery-item").find(".gallery-caption").text();
}
}
});
});
}
scss/style.scss
@import "libs/magnific-popup"; // magnific lightbox styles
from scaffolding.
Related Issues (20)
- Scaffolding Caption not showing correctly HOT 2
- Failed to Import compass HOT 2
- Adjusting sidebars HOT 1
- Navigation "Hickups" HOT 8
- Question In Regards to Sticky Footer HOT 1
- Missing default Bootstrap classes HOT 4
- Is this based on Bones or _S?? HOT 3
- Failed to load content css HOT 3
- Caption on Image not working HOT 1
- Page Template
- Filtering out image dimensions breaks Woocommerce product photos HOT 1
- Woocommerce Subcategories HOT 6
- Anchor Tag Issue HOT 1
- Refresh loads at top of page HOT 6
- Missed fontawesome css file
- Replace Compass with Node SASS HOT 3
- ADA Improvements
- Bootstrap5 support? HOT 2
- Administration
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scaffolding.