mbrailer
Forum Replies Created
-
Thank you! That FAQ had a good suggestion, and thank you for posting that.
I can put a MORE tag ahead of any content I don’t want to go out in mail, then after the post publishes and the mail is sent, I can remove the MORE tag. Easy enough.
Forum: Plugins
In reply to: [Upload Media By URL] Error: Invalid LinkMy apologies, this message relates to a different plugin, “LH Add Media from URL.”
Moderators, please delete this thread if possible. Thank you.
Forum: Plugins
In reply to: [WooCommerce] Products shortcode and visibility=”hidden”Hi @mouli — thanks for responding. I ought to note that I was not using the latest version of WooCommerce when I wrote my original post.
As an experiment, I installed the current WooCommerce on another WordPress website I manage, and
[products visibility="hidden"]
worked just as I expected it to work.I created a test product with visibilty set to “hidden” and that product was displayed while a second test product with visibility set to “shop and search” was not.
Forum: Plugins
In reply to: [WooCommerce] Products shortcode and visibility=”hidden”Thank you for your response. The instructions for this command seem to contradict themselves; on one hand, there’s an attribute intended to force the shortcode to display a listing of “hidden” items — and yet, as you pointed out, “hidden” items can only be accessed by their URL.
Maybe this “hidden” attribute doesn’t work as it was intended.
To eliminate the dimming pictures, add this as a separate line in your CSS:
.jp-relatedposts-post{opacity:1 !important}
I think that will work, but I haven’t tested it.
Regarding the pop-up text, that’s a Javascript function provided by Jetpack. Although it might be possible to make the pop-up not appear using CSS, the text itself will still be transmitted with the page, so it wouldn’t reduce the amount of data sent or speed up page loading.
If you’re still curious about this, I suggest you open a separate discussion thread and maybe someone from the Jetpack team can explain it better.
Forum: Plugins
In reply to: [Mihdan: Ajax Edit Comments] No Colorbox on smartphoneHello, I’m using version 6.0.4 of the Ajax Edit Comments plugin. Current WordPress version is 5.1.1. My phone runs Android 7.1.1
Hello again, I’m glad you asked because it gave me an opportunity to improve the layout on my own site. Below is my code from the earlier example, with updates:
@media only screen and (min-width:321px) and (max-width:640px){ .jp-relatedposts-post:last-child { display: none; } } @media only screen and (max-width:640px){ .jp-relatedposts-items-visual { margin-right: -20px !important; } }
Here’s what I changed from before:
- On screens 320 pixels and below, the thumbnails go to 100% of page width, so there’s no reason to eliminate the third one.
- On screens 640 pixels and below, a right margin, formerly 20px, is changed to -20px.
- This reply was modified 5 years, 7 months ago by mbrailer. Reason: Updated
Got it, thanks!
Hello @darnelldibbles
I did as you suggested and uninstalled/reinstalled Jetpack. I also deleted all other plugins so that Jetpack was the only one. There didn’t appear to be any change. Here are some scenarios I tried and the outcomes when pasting an embed code obtained from Twitter:
- Jetpack enabled, Jetpack comments enabled, logged in as admin: “Invalid Security Token”
- Jetpack enabled, Jetpack comments enabled, anonymous user: “Invalid Security Token”
- Jetpack enabled, Jetpack comments disabled, logged in as admin: Success: embedded content appears
- Jetpack enabled, Jetpack comments enabled, anonymous user: Embedded content doesn’t appear, just the HTML code (but a reference to platform.twitter.com/widgets.js has been removed. I assume WordPress does that)
After this, I installed a plugin titled oEmbed in Comments (https://gist.github.com/sheabunge/6018753). This is a better solution for me overall, because readers can embed content just by pasting the URL instead of a longer embed code.
James:
It looks like the only time I can successfully paste embed codes is when Jetpack comments are disabled and I’m logged in.
I opened a second browser window in Incognito Mode (Chrome) so that I could post comments as an anonymous user. I obtained some embed codes from Twitter and Instagram.
When I pasted these codes with Jetpack comments enabled, I saw the “Invalid Security Token” error. When I pasted them with Jetpack comments disabled, there was no error message, but the embed didn’t work right — I saw the HTML code displayed rather than the embedded content.
Only when I post embed codes while logged on to the site AND with Jetpack comments disabled, do I see the content I’m trying to embed.
This worked for me. Add this to your stylesheet:
@media only screen and (max-width: 479px) { .jp-relatedposts-post:last-child { display: none; } }
This will cause the last item in the Related Posts grouping to not appear on screen widths at or below the
max-width
value. (you could change that value if it’s not right for your needs.)- This reply was modified 5 years, 7 months ago by mbrailer. Reason: "at or below" not "below"
Hi Gemma:
I had installed oEmbed in Comments after I posted my original message (which I realize may have created confusion, for which I apologize). Also, to clarify my earlier post, my issue only affects Jetpack comments, not posts or pages. I have disabled the plugin.
Pasting a Twitter or Instagram embed code into the Jetpack comment box produces an “Invalid Security Token” message after clicking the “Post Comment” button. (It looks like this: https://mike.brailer.info/wp-content/uploads/2019/04/invalid-security-token.png)
If I paste the content URL into a comment, it turns into a clickable link rather than embedding (except for YouTube videos, which do embed). This is why I installed oEmbed in Comments, which solves my problem.
- This reply was modified 5 years, 7 months ago by mbrailer.
Forum: Fixing WordPress
In reply to: oEmbed in commentsThanks to you both for your responses.
I just discovered something that may help. The embed codes from Twitter all have the
—
entity code in them. When I manually remove that code, I am able to post the content.This will be helpful to me when I want to add content from Twitter as a comment, but if other readers want to do the same, I’ll have to teach them this trick. It would be much easier for all if these embed codes would work exactly as these services provide them.
Forum: Fixing WordPress
In reply to: Recent Comments widget duplicate IDst-p, good suggestion. I put my site in troubleshooting mode (all plugins off, default theme) and the Recent Comments widget still has
<ul id="recentcomments">
As an experiment, I added the Recent Comments widget to the footer a second time. Both incidents of the widget had
<ul id="recentcomments">
Thanks to Joy for pointing out the numbering in the widget. I’ll take your advice and see if this is already reported.