marcusln
Forum Replies Created
-
This solves it for you:
$(document).ready(function() { $("body").children().each(function() { $(this).html($(this).html().replace(/
 ;/g," ")); // remove the space in front of the first semicolon! }); });
- This reply was modified 6 years, 10 months ago by marcusln.
Forum: Plugins
In reply to: [Lightbox with PhotoSwipe] How to implement for custom themeHmmmm, I should check that out, thanks. Not really sure, the only thing related to scripts in functions.php is
if (!is_admin()) add_action("wp_enqueue_scripts", "my_jquery_enqueue", 11); function my_jquery_enqueue() { wp_deregister_script('jquery'); }
Because I saw that jQuery was loading twice. So I load it via <script> in the header. I should perhaps use the wp_enqueue scripts functions properly. My impressions was that out of the box WordPress loads too much stuff I don’t use, so I wanted to keep it clean.
Forum: Plugins
In reply to: [Lightbox with PhotoSwipe] How to implement for custom themeWow! Nice catch! I added the script via wp_enqueue_script() and now everything works. Magic! Thank you so much! For an unskilled developer like me, the documentation was a bit vague as it says that “it just works”.
Forum: Plugins
In reply to: [Lightbox with PhotoSwipe] How to implement for custom themeHi and sorry for my late reply.
I created a sample page you can look at:
https://www.stoffmagasin.no/2018/05/10/fotostoff/
This is my code in WordPress editor:
<a href="https://www.stoffmagasin.no/wp-content/uploads/2018/05/5.jpg"><img src="https://www.stoffmagasin.no/wp-content/uploads/2018/05/5-600x902.jpg" /></a> [gallery link="file" size="medium" ids="7613,7581,7574"]
Unfortunately, it doesnt work at all. I have no idea why.
- This reply was modified 6 years, 10 months ago by marcusln.