jjon
Forum Replies Created
-
I did inspect the console carefully, and no relevant errors are recorded. Likewise the php debug.log: no relevant errors. The plugin simply doesn’t work most of the time, until, seemingly at random, it does work but gets the order wrong anyway.
After no end of aggravation with the newest version, I followed advice to downgrade to an older version of the plugin. I installed v1.8.1, and this worked flawlessly in my use case. I think I rather like the draggable list items better than the draggable tiles anyway. Thanks @aurovrata for a very useful plugin.
A pity. This plugin represents useful functionality, but I simply cannot get consistent results from it. Even the results I’ve described above cannot be made regular. Sometimes it works, mostly it doesn’t. I guess I’ll have to go back to editing the publish dates for my posts to get the order I want in the category pages. *alas*
Yes, thanks, that much is clear. But I still see some odd behavior:
- I went in today to make further changes and found that the reorder grid was not responsive to the mouse at all. Inspector showed there were no drag events attached to draggable-objects except for the first one, and I could not select or drag any of them. Nothing was reported in debug.log. Logged out, and back in: no change. Nothing seemed to work, so I killed the browser, and everything else, and rebooted. Returning to the site, I found it working, so I suspect there’s some sort of js/dom, or caching problem somewhere.
- When the site was working again, I found the same peculiar ordering problem: posts for a category on the front end were ordered as defined in the admin page. I reordered the posts on the admin page in the reverse of the desired order, ie. with the topmost post rightmost in the grid. Then I checked the front end, and posts were in the desired order. I returned to the admin page and found that the posts are now ordered as expected with the top post leftmost in the grid.
Thanks @aurovrata, without that code (that’s the trouble with monkeying around when you don’t know what you’re doing) the posts on my category pages now do respond to the ordering set by the plugin; however, I’m getting weirdly inconsistent results. With one category the posts are ordered as I set them in the plugin. The posts are presented top to bottom in the front-end as they are ordered left to right in the plugin’s admin page. But in another category page, the order is reversed: the posts are displayed top to bottom in the front end as they appear right to left in the plugin’s admin page.
As I say, weird! Except for the header image and the introductory text, the templates for these two pages is identical.
I’m at a loss.
Forum: Fixing WordPress
In reply to: kill multiple youtube playersThanks @bcworkz, that was quite helpful. Rookie mistake, yes. I can remember making the same mistake when I first built something in PHP decades ago.
It’s actually impossible to access the YT play button and disable it with JS because the button lies within an externally sourced iframe. Being able to access it is seen as cross-site scripting, which is blocked for security reasons.
In a different context, and without all this PHP, I embeded a vimeo player in a page and found it had an easily accessible API so that I could do this:
<script> function unloadVimeo(player) { var p = new Vimeo.Player(document.getElementById(player)); p.unload(); } </script>where
playeris the ID of a dom element. YouTube has no similar API?I like your static images with modal player idea, but I’m trying to keep the extra code to a minimum
As to user’s bandwidth; yeah, you’re right.
j
Forum: Fixing WordPress
In reply to: YouTube URL failsthanks @crouchingbruin. You got further than I did. My page won’t even display the video’s frame.
Forum: Fixing WordPress
In reply to: Shifting header image for not(.home) pagesThanks Ross. Yes, in retrospect it’s clear that was not the most edifying post. Indeed the whole end of a sentence failed to survive some copy/paste operation. As it happens, I managed to figure it out myself, so for those few who are as clueless as I: The solution lies in reading the CSS rule accurately.
The relevant rule, in part, says this:
.has-header-image:not(.twentyseventeen-front-page):not(.home) .custom-header-media img { height: 100%; object-fit: cover; ... etc. }The rule is for an img tag, and it says that the height of the image should be 100% of the container size. So long as that’s true, there’s no point moving the image around with transform, because the rest of the image isn’t there. (duh!) As soon as I figured that out, the solution was a little clearer:
(edited)
.has-header-image:not(.twentyseventeen-front-page):not(.home) .custom-header-media img { height: initial; left: 0; object-fit: cover; top: 0; transform: translateX(0%) translateY(-57%); }height: initialgives you the whole image, which can then be moved around as needed to get that part of the main header image you want for the post or page header:transform: translateX(0%) translateY(-57%);Thanks again, and sorry for the noise.
Forum: Plugins
In reply to: Simile Exhibit is not workinghi @clicsilas,
Thanks very much for helping. I’ve succeeded in creating a special-purpose template that renders my exhibit as I would wish, but an essential element seems to be broken.The ‘bookmark’ function (click on the bookmark icon) generates a url that records a hash that should return a user to a particular state, ie. displaying a filtered dataset. This function works in my development version, built outside of the WP site, but in the page that WP generates from the page-exhibit.php template, the bookmark creates a URL with the hash, but WP ignores the hash and simply takes the user to the default, unfiltered dataset.
I know that WP does a good deal of munging of URLs, and redirects and such, but I don’t know enough about WPs internals to guess why it’s ignoring the state data in the URL.
Any insight at all that you might have would be welcome.
JonForum: Plugins
In reply to: Simile Exhibit is not workingI see from your listed example that you’ve made this work, and it looks great. I’m engaged in doing something similar. It would be very helpful if you could show how you hacked the WP theme to integrate the Exhibit. How exactly did you change the default header.php and the page.php.