Ah, your mention of Fraction jogged my memory that they actually included a setting to hide those broken images. I flipped the switch. So that's one less thing to argue about now.Just throwing in that in general it's considered bad practice to render a broken image just because an image upload is missing, you'd rather just render no HTML at all. Kind of having problems understanding why the Fractions people chose to set it up that way.
Many, many thanks. I truly appreciate it. =) If you find a switch to make it so the Featured Image only appears in search results (like in this type of search window you posted) then I would set the Unused Text Logo as the Featured Image to every UT article. Just as long as said logo isn't forced to show up inside the actual Page article, I'm good.Ah, your mention of Fraction jogged my memory that they actually included a setting to hide those broken images. I flipped the switch. So that's one less thing to argue about now.
Just curious, but what was it that *really* made you remove the function to adjust the width and height of an [Embed] in the first place? Does it have to do with semantics again?Flintlock said:As I added to my previous post in an edit, I'm working on it. It's looking more and more like the solution is going to involve Javascript.
Yeah, it's certainly not impossible. It's a function of the theme we're using. I haven't looked into it much yet but I have a feeling it'll be a pain to change.I remember that at least before the frontpage update, what you set as a "Featured Image" in a newspost only appeared on the frontpage newsfeed, not inside the actual article. So clearly WordPress, at least in that earlier version, was not alien to that type of functionality.
Not semantics, just presentation. It's pretty pointless nowadays to hard-code height and width when visitors' browsers range from 300px to 4000px in width (and that range will only grow in the future). It's much better to define sizes proportionately, and using 100% of the available width makes the most sense. I want 100% width videos on articles and I'm trying to find a way of allowing smaller videos on pages while keeping them responsive.Just curious, but what was it that *really* made you remove the function to adjust the width and height of an [Embed] in the first place? Does it have to do with semantics again?
I've done it. I have become a summoner.As for the videos, I'm nearly there. Both full-width and smaller videos now display correctly when the page is loaded. The problem is that they're not resizing correctly if the browser width changes. More JS learning needed...
[embed]https://www.youtube.com/watch?v=ucfj2BaPBjs[/embed]
[embed width="[I]w[/I]"]https://www.youtube.com/watch?v=ucfj2BaPBjs[/embed]
[embed height="[I]h[/I]"]https://www.youtube.com/watch?v=ucfj2BaPBjs[/embed]
Because you're using a JavaScript library to solve a CSS problem?Why does it feel like that's the solution to 99% of CSS problems and why didn't I realise that sooner?
Thank you muchly! Well done. I have proceeded to replace all old YouTube embedding code with the [embed] tag now.
Auto-centering is also appreciated.In the latter two cases the less-than-full-width video will be centered on the page automatically, so you don't need to wrap it in <center> tags or <span style="text-align: center;"> or whatever. Note that <center> tags flat-out don't work in HTML5.
After trying some code of my own without much luck (I'm not a JS person)
This isn't quite the right way to think about it. You can put whatever code you want in the text editor but it doesn't mean it's going to work properly when you publish an article/page – it's what they use that matters. And it is actually HTML5. You can see that if you "view source" anywhere on the site (not the forum). The first line of the source will beYou say that <center> tags don't work in HTML5. So which HTML does the Text Editor currently use, since <center> tags still work there?
<!DOCTYPE html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
I don't think it's obscure. There are only two reasons ever to log in:
The first case is, obviously, covered by the login link in the comment section, while the second only applies to about a dozen of the thousands of people who visit our site each month, so it's not unreasonable to ask them to bookmark it in their browser rather than get a dedicated link of their own.
- To make a comment
- To access the admin panel