kerelberel
Forum Replies Created
-
Forum: Plugins
In reply to: [Responsive Lightbox & Gallery] Lightbox doesn't always pop upI did enable custom events, that’s why I was asking about event handlers. I’ll go ask the theme dev. Thanks ??
Btw, why is the window so wide? The original upload isn’t as wide (there’s black bars in the lightbox, and not on YouTube). I can edit the CSS to suit my needs but I wonder if it has something to do with the plugin or the video?
Forum: Plugins
In reply to: [Responsive Lightbox & Gallery] Lightbox doesn't always pop upWell, event handler it is. What do I need to do exactly? Edit something in the site or the plugin? I only know HTML and CSS, nothing beyond that so I may need more help.
Forum: Plugins
In reply to: [Featured Video Plus] If else statement to either show an image or a videoWhat I eventually noticed is the YouTube plugin has its own div. I removed the 2nd mention of post-thumbnail and assigned some styling to the plugin div.
There is a difference. With your code the video height is bigger and I get black bars. But I guess that’s more a CSS problem. Thanks for the effort ??
Forum: Plugins
In reply to: [Featured Video Plus] If else statement to either show an image or a videoIt doesn’t resize the video: https://www.hallometmirel.nl/emd/?p=53 The content text should be on the right side like this: https://www.hallometmirel.nl/emd/?p=36
I tried adding $size to the echo of the_post_video but that didn’t work either. On another forum someone says the variable $post_id and have to be added first before they can be used. But $post_id does work right? otherwise it wouldn’t have found the video.
Forum: Plugins
In reply to: [Featured Video Plus] If else statement to either show an image or a videoOkay, a teacher explained to me that get_the_post_video comes out of nowhere, I asked what he meant and I think he meant it isn’t declared anywhere. I’m not so sure either because I don’t know much about PHP, and he doesn’t know much about WordPress.
Still, the code I have in my first post shows both the image and the video. It reads both codes so I get_the_post_video does kind of work? Someone else adviced me to put the if statement inside the div.
I’m not sure what to do, nor do I have a proper understanding of this.
Forum: Plugins
In reply to: [Featured Video Plus] If else statement to either show an image or a videoI tried putting the entire if statement within the div but then it shows nothing.
Forum: Themes and Templates
In reply to: One page, every post has it's own div & CSS, how?seems to be working now, but if I place a div, the whole CSS get’s screwed up, because of the weird layout. Sigh. Now CSS’s the problem, and not PHP.
Forum: Themes and Templates
In reply to: One page, every post has it's own div & CSS, how?Now it’s like this: https://pastebin.com/dW6kDira
Right now it’s not on the website. If I change it to the code in the pastebin link, every post gets on top of another post. How does that happen?
edit: seems to be working now
Forum: Themes and Templates
In reply to: One page, every post has it's own div & CSS, how?On another forum someone remade the code to this: https://pastebin.com/RxpFW0XV
But it only reads out the first loop and makes every post the video category.
Forum: Themes and Templates
In reply to: One page, every post has it's own div & CSS, how?edit – here it is: https://pastebin.com/LneLZNpF
Well, this is essentially what I want, but divs don’t go inside php statements. I’m not sure how I can accomplish this any other way. I tried closing each php statement but unsurprisingly it doesn’t work.
Forum: Themes and Templates
In reply to: One page, every post has it's own div & CSS, how?Well, this is essentially what I want, but divs don’t go inside php statements. I’m not sure how I can accomplish this any other way. I tried closing each php statement but unsurprisingly it doesn’t work.
[Code moderated as per the Forum Rules. Please use the pastebin]
Forum: Themes and Templates
In reply to: One page, every post has it's own div & CSS, how?It works, so thanks for that ?? I’m still not there yet.
I’m.. kinda oblivious on how I can apply this to have a div on top of the existing div. For instance, I want my .category-video to have a div on top of it called .roof1.
.category-art should have .roof2 on top of it too.
But .category-website should have a div .sidewall floated to the left of it.
Forum: Themes and Templates
In reply to: One page, every post has it's own div & CSS, how?Isn’t that the Post ID, and not the Category ID?
Forum: Fixing WordPress
In reply to: if statement on loop not workingin_category was the problem, it’s supposed to be is_category. Been trying everything for 2 hours but someone on another forum pointed this out.
Close.
Forum: Fixing WordPress
In reply to: php category code between li tags doesn't get styledThe php code already has a list tag. I checked the source after removing them and they all have a unique class assigned to them so that’s that. ??