SchweizerSchoggi
Forum Replies Created
-
Forum: Plugins
In reply to: [WordPress Popular Posts] Excerpt: text to dots without spaceDear Héctor
Thank you for the notification!
I have updated to version 5.4.0 but unfortunatly I still see a space between the last character and the dots. No change here.Do I have to change to code in the functions.php somehow?
/** * Changes the ending string of the excerpt. * * @param string $more * @return string */ function my_wpp_excerpt_more($more){ return '...'; } add_filter('wpp_excerpt_more', 'my_wpp_excerpt_more', 10, 1);
Forum: Plugins
In reply to: [WordPress Popular Posts] Excerpt: text to dots without spaceGood morning Héctor!
Thank you for investigation and description.
Yes, now I can at least change the return value … to *** or whatever is needed.Unfortunatly there is sill a space between the last word of the excerpt and the … so that it sometimes has the dots on a separate line.
Forum: Plugins
In reply to: [WordPress Popular Posts] Excerpt: text to dots without spaceIn general I would agree. But I am displaying the excerpt (and additional information) on a tile so space might always be tight, even if I would reduce the excerpt to 10 or only 5 words.
Anyway.. I have added your snippet to the functions.php – but I don’t see any difference yet. Even if I change the return value to ‘***’ instead of ‘…’ – I just don’t see it.
PS, I am using it like this:
<span class="wpp-excerpt">{summary}</span>
- This reply was modified 3 years, 7 months ago by SchweizerSchoggi.
- This reply was modified 3 years, 7 months ago by SchweizerSchoggi.
Yeah sorry, the first time I posted my question it did not appear within the next ~ 5min. So it seems it has reached you, just later.
Thank you for your response anyway!
Forum: Plugins
In reply to: [WordPress Popular Posts] Shortcode to get 1st, 2nd, 3rd most popular postOverall that’s a nice solution.
Meanwhile I’ve tested it in action and experienced some other problems with the “Slide Anything” plugin. I will go with a handmade solution now in combination with your shortcodes above.Super helpful again, thank you!
Forum: Plugins
In reply to: [WordPress Popular Posts] Display Tags and Author imageYep, the plugin is actively removing all inline JavaScript code (including onclick attributes) from the shortcode for security reasons.
Ahh, I see! No problem, just good to know. I’m using the data- attribute now, that’s the best option in my opinion. Thx!
Forum: Plugins
In reply to: [WordPress Popular Posts] Display Tags and Author imageGood morning Héctor
May I add one more question?post_html='<div class=”brick_item” onclick=”window.location.href={url}”> … content … </div>’
This does not seem to work for me. I already tried to escape the sequence =>
post_html='<div class=”brick_item” onclick=”window.location.href=\'{url}\'”> … content … </div>’but no success. It is not even displaying the onclick part at all. Everything behind that tag (also content that is included in that div) is being displayed fine. But the onclick notation does not appear.
Any idea why this is happening?
Have a great day!
- This reply was modified 3 years, 8 months ago by SchweizerSchoggi.
Forum: Plugins
In reply to: [WordPress Popular Posts] Display Tags and Author imageAmazing, works like a charm now!
Btw.. still impressed about your outstanding support.
Not only offering a quick solution, but also describing what you’re doing and why!Don’t you offer WP lessons or better “PHP for WP” lessons at Udemy or somewhere else?
I would go and book directly!Have a wonderful evening – you definitly saved my day when I was stuck!
SchoggiForum: Plugins
In reply to: [WordPress Popular Posts] Display Tags and Author imageYour help is awesome @hcabrera !! Thank you so far, I will definitly pay you a few coffees for this!
Your description is great, although I don’t understand that much of php I was able to follow and adjust the code to my needs.
Now there is only one question left on this topic:
can I hide tags that have a specific id? It just came to my mind when I tested the code.
Sample: I would like to hide the tag “Test 1”, its ID is 1.
SampleForum: Plugins
In reply to: [Yoast SEO] Cannot set default Social Media imageok, that’s a pitty..
I am using another plugin now (“Open Graph and Twitter Card Tags”) which works for my case. That’s not the perfect solution I was hoping for but yes, it does work and I can close the case here.
Anyway, thank you guys for your ideas and time. Have a wonderful summer
SchoggiPS: this plugin needs absolute urls as well, and the image picker is coming back with a relative one as before. But in this plugin I can change the url afterwards and add the https://myurl.com part.
- This reply was modified 3 years, 8 months ago by SchweizerSchoggi.
Forum: Fixing WordPress
In reply to: Media files: how to change url to absolute path?I guess you’re right, it might be a plugin that is switching the urls from absolute to relative. Or the theme itself. As I don’t have a test environemt atm and only the live server I won’t switch any themes or deactivate all plugins.
I am using another plugin now (“Open Graph and Twitter Card Tags”) which works for my case. That’s not the perfect solution I was hoping for but yes, it does work and I can close the case here.
Anyway, thank you guys for your ideas and time. Have a wonderful summer
SchoggiForum: Fixing WordPress
In reply to: Media files: how to change url to absolute path?Yes, I have reported it already, but they say that they can’t fix it, because the image needs to come with an absolute url. So well….. deinitily looks like I have to look for another solution here.
Your plugin sounds promising on the first glance. Does it support Twitter as well or is it Facebook-specific?
- This reply was modified 3 years, 8 months ago by SchweizerSchoggi.
Forum: Fixing WordPress
In reply to: Media files: how to change url to absolute path?As far as I understand the issue is that @schweizerschoggi can’t change the url afterwards and media library only allows to use relative URLs in conjunction with Yoast plugin.
Exactly that’s the case here.
My general WP settings are set to absolute urls, but via media library I am only getting relative urls.See screenshots:
Capture 1
Capture 2
Capture 3
Capture 4- This reply was modified 3 years, 8 months ago by SchweizerSchoggi. Reason: typo
Forum: Plugins
In reply to: [Yoast SEO] Cannot set default Social Media imageI still cannot find where the url changes to relative, but anyway…
Another idea:
If I would set the og:image tag in the theme files directly, would it be overwritten by your plugin with the featured image of a post (if there is one)?Than we could have a solution here…
Forum: Fixing WordPress
In reply to: Media files: how to change url to absolute path?The problem is that I need an image for social media activities (og default image, set via Yoast plugin).
To set this image I can select it from the WP media libtrary.
But it’s not possible to edit the url somewhere afterwards and the plugin does not allow relative paths ??