2023-05-26, 22:40:09
(2023-05-26, 21:00:40)tommy Wrote:(2023-05-26, 18:01:55)multicolor Wrote: Shortcode you should paste on ckeditor, not template. Remember about get_header() and get_footer() on yours template
Tested with a blank template, I notice the styles were injected both at the <HEAD> section as well as within the page where I inserted the shortcode. There are also additional inline styles in the page. Is it meant to be like that?
Code:<HEAD>
<link rel="stylesheet" href="glightbox.min.css">
</HEAD>
<BODY>
<main>
<link rel="stylesheet"href="glightbox.min.css">
<style>
.monsterGallery-grid{
display:flex;
flex-direction:row;
flex-wrap:wrap;gap:3px
}
@media(max-width:768px){
.monsterGallery{
width:95%;
margin:0 auto;
display:flex;
flex-wrap:wrap;
flex-direction:column;
}
.monsterGallery-grid a{
margin:0;
padding:0;
}
.monsterGallery-grid img{
max-width:100% !important;}
}
</style>
<div class="monsterGallery-grid">...</div>
</BODY>
looks like you try shortcode and and function on one time. Send me real website on pm with password to can i show you how it work