Forum Replies Created
-
AuthorPosts
-
Hi Ismael,
Thanks for your time with this. I have put some info in the private field with a temp login.
The translation process is still a work in progress, which is why I prefer to put the details in private. I also realise I did not phrase my question very well :-)The real question is this:
From what I understand autop and texturize should only apply on the frontend. So the <p> tags should not be showing in the Classic Editor in Text view?
In fact that is the way it is in Text View in the Posts (non-ALB) and in the ALB editor, for example the Home Page (1 avia element at a time).
Yet on the translation window (Classic Editor) the <p> tags appear when switching to Visual view and then back to Text view.So is this just an issue of needing to use get_the_content instead of the_content in the plugin?
And would there be any issues with Enfold if the translation editor window used get_the_content instead or some filters to make it raw?Thanks for your help,
Rob- This reply was modified 4 years, 2 months ago by rob2701. Reason: added note about possible performance problems hosting live site
September 3, 2020 at 3:12 pm in reply to: Excerpts translation in Blog Magazine layout – 2 questions #1243122Hi,
Just for info:
Falang Multilanguage for WordPress 1.3.2 was just released, including many adaptations for use with Enfold.
RobAugust 31, 2020 at 12:51 pm in reply to: Excerpts translation in Blog Magazine layout – 2 questions #1242159Hi Mike,
Thanks for the good answers, very clear and helpful. I will keep you posted once the updated plugin is available.
Kind regards,
RobAugust 31, 2020 at 8:16 am in reply to: Excerpts translation in Blog Magazine layout – 2 questions #1242063Hi Mike,
Thanks for the answer. What about question number 2?
Here’s what Stéphane mentioned:
The change in magazine.php is needed because at the moment in the parent theme Enfold uses the post_content (when no manual excerpt exists) but for excerpt and post_content it doesn’t call a filter , which is necessary to make Falang translate the excerpt.PARENT:
$excerpt = ! empty( $entry->post_excerpt ) ? $entry->post_excerpt : avia_backend_truncate( $entry->post_content, apply_filters( 'avf_magazine_excerpt_length', 60 ), apply_filters( 'avf_magazine_excerpt_delimiter', ' ' ), '…', true, '' );
CHILD ADAPTED:
$excerpt = ! empty( $entry->post_excerpt ) ? get_the_excerpt($entry->ID) : avia_backend_truncate( apply_filters('avf_magazine_entry_content',$entry->post_content,$entry), apply_filters( 'avf_magazine_excerpt_length', 60 ), apply_filters( 'avf_magazine_excerpt_delimiter', ' ' ), '…', true, '' );
So the change is from:
$entry->post_excerpt
to:
get_the_excerpt($entry->ID)
So question number 2:
As this could be needed by other translation plugins as well, could it be added to Enfold in a future update?Rob
- This reply was modified 4 years, 2 months ago by rob2701. Reason: fixed ellipsis in code
Sorry, my bad… I should read more carefully :-)
RobThis works for me in the child theme functions.php to keep the previous-next butons only in one specific portfolio category.
Maybe it works for you too.// make previous-next buttons stay within the relevant portfolio category (multiple portfolios) add_filter( 'avia_post_nav_entries', 'enfold_customization_postnav', 10, 2); function enfold_customization_postnav($entries, $settings) { if($settings['type'] == 'portfolio') { $settings['same_category'] = true; $entries['prev'] = get_next_post($settings['same_category'], $settings['excluded_terms'], $settings['taxonomy']); $entries['next'] = get_previous_post($settings['same_category'], $settings['excluded_terms'], $settings['taxonomy']); } return $entries; }
Rob
July 16, 2020 at 8:58 am in reply to: No ReadMore or Pagination on alternative template Blog Posts #1230859Hi Ismael,
Thanks for all the help, info and patience, I realise you guys are very busy.
All solved and can be closed. Nice!Have a good day,
RobJuly 14, 2020 at 9:02 am in reply to: replace the content of a shortcode with the value of shortcode attibutes #1230227Hi Ismael,
Thanks for getting back on this. I wish I could answer your question, but I am just passing the question on and don’t understand it well myself.
Since the dev does not have an account on this support forum, is there a way that he can contact you directly on this? Or you him (details in private field)?
If not, I will have to be the middle man.
Thanks for the tip about the filter, I will first pass that on to Stéphane and see if that helps him to solve it.
I will let you know.Cheers,
RobJuly 14, 2020 at 6:53 am in reply to: No ReadMore or Pagination on alternative template Blog Posts #1230174Hi Ismael,
That’s funny, I hadn’t even noticed that. I was still at the same point you were at in your last answer, that the blog archive items breadcrumb was still displaying Home / Blog / Blog / item.
All I did was create a sub menu item for the archive (blog category) with a custom link, so it would be easier for you to fix.I now see that that action has also made sure that the fix for the opened blog entries also applies to the opened blog archive entries. Now everything indeed points to the real blog page in the breadcrumbs.I wish I could say I found the fix, but no, this was just a lucky side effect of another action :-)
Don’t know if this actually fixes the last issue you were looking to fix, or if this is a side effect issue of placing the archive page as a sub of the blog in the menu…But there is still the minor issue left of the blog category archive page itself (so not the opened item) showing Home / Blog / Blog in the breadcrumb, where the first blog points to the real blog page. The second blog in the breadcrumb is supposed to show the item name (which in this case is “Archive for category: Blog”) but instead just says Blog.
Don’t know if that is how it’s supposed to be / intentional.Unless you want to investigate some more, let me know – then I will keep the login to the devsite open.
If not, I’m good as it is now, thanks for all the help! Then.you can close this.Cheers,
RobAdded remark for ReadMore issue:
Your solution for setting the WP Settings to default cannot be used, as it results in an issue with Blog Grid pagination (404s). Blog Grid page pagination only works when the WP settings are set the same as the Homepage & Blog Settings in Enfold theme. You may want to look into that.- This reply was modified 4 years, 4 months ago by rob2701. Reason: Added remark for ReadMore issue (pagination Blog grid 404s)
July 10, 2020 at 12:18 pm in reply to: No ReadMore or Pagination on alternative template Blog Posts #1229398Hi Ismael,
Thanks for delving into this and fixing the display of the ReadMore. It had been bugging me for a long time that I couldn’t get it to display and I couldn’t find the solution. With your fixes, the ReadMore now displays very nicely on the Blog, on the Archive for Category Blog and on the Archives widget.
I will not be using the ReadMore on this particular Blog page (because of duplicate links – accessibility – having the link already set on the featured image), but it is good to know that I now have a choice for future pages on different sites. I’ve left it enabled for now however on the Blog, while you still work on it.
To facilitate your checking I’ve added submenu entries to Blog for “Archive for Category: Blog” and Blog Archives(widget)”.Thanks for all the help so far,
RobHi Ismael,
Never mind, I managed to find a good solution in an old thread here :-)
https://kriesi.at/support/topic/remove-category-from-breadcrumb/#post-426142// Remove Blog Category from single post breadcrumbs // Single post shows trail Home/BlogPage/BlogCategory/ItemName // see https://kriesi.at/support/topic/remove-category-from-breadcrumb/ // 1st element is Blog Page, 2nd element is Blog Category, remove #2 add_filter( 'avia_breadcrumbs_trail', 'mmx_remove_element_from_trail', 50, 2 ); function mmx_remove_element_from_trail( $trail, $args ) { if ( is_single() ) { unset ($trail[2]); } return $trail; }
Topic is solved and can be closed.
Kind regards,
Rob- This reply was modified 4 years, 4 months ago by rob2701. Reason: added code to be code
Hi Ismael,
This is the Blog Page (Blog Post elements on a page ALB):
<site>/blog/Open ANY blog post on that page, for example:
<site>/screenprint-special-characters/the breadcrumb in the opened post points to:
<site>/category/blog/But I want the breadcrumb “Blog” on an opened blog item to always point to the blog post Page, i.e. <site>/blog
The confusion comes from me making the archive for blog category look exactly like the blog post page. I did that to not make it so obvious that the breadcrumb points to the wrong page on opened blog posts. Hope that explains it better.
I also realise that the title for this thread is wrong, it is about “Breadcrumbs in a Blog element page pointing to the Blog archive page”. It is a bit late to change that now, unless you know how :-)When I take the whole part out in the functions.php the breadcrumb becomes:
You are here: Home / Blog / Blog / Screenprint special characters
The first Blog points to: <site>/blog
The second Blog points to: <site>/category/blog/When I replace is_archive with is_singular(‘post’) in your adapted code it gives this on an opened blog post:
You are here: Home / Blog / Blog / Screenprint special characters
The first Blog points to: <site>/blog
The second Blog points to: <site>/category/blog/Inside the Archive for Category: Blog the breadcrumb becomes:
You are here: Home / Blog / Blog
The first Blog points to: <site>/blog
The second Blog points to: <site>/category/blog/All I am trying to achieve is to get the breadcrumb on opened Blog posts to display just one Blog, which pointS to the Blog page. That’s all.
Thanks for your help!
Rob
July 6, 2020 at 7:54 pm in reply to: No ReadMore or Pagination on alternative template Blog Posts #1228350Hi Ismael,
Yes , I did indeed manage to display the Read More, but _only_ on the Blog Category Archive pages. But I don’t use those for now, they just appear — against my will :-) — because the Blog Posts when opened have a wrong breadcrumb link which points to the Blog Category archive instead of to the Blog Page (see my other post about that issue).
https://kriesi.at/support/topic/breadcrumbs-in-blog-archive-page-layout/
Because of that I have created the adapted Blog Archive page to look just like the Blog Post Elements page, so it would not be so obvious that we land on the Blog Category Archive instead of the normal Blog Page when the (wrongly set) breadcrumb link is clicked from an opened blog post. I hope I explain myself clearly this time without confusing the two.However, I did NOT manage to get the ReadMore links to show on my real Blog Page, which is a page with a Blog Posts element. If you look at the Blog page (top menu) you will see that the link does NOT appear, even though I have set “Display Title and Excerpt + ReadMore” in the settings of the Blog Post element under “Define Blog Grid layout – Do you want to display a read more link?”. So I would like to know why it doesn’t appear there.
And yes, I have set “For each post in a feed, include” option in the Settings > Reading panel to “Summary”?, of course.
Always been that way.I apologize for the confusion in my earlier descriptions, it was done a long time ago and I confused the two pages (Blog Category Archive and Blog Element Page) because I had made them _look_ the same because of the breadcrumbs issue.
I hope I explained it better this time… Again, sorry if I confused the issue earlier.Thanks for your help!
Kind regards,
Rob- This reply was modified 4 years, 4 months ago by rob2701. Reason: correction typos
Hi Mike,
I just realised how completely nonsensical this comparison discussion is. A traditional LCD screen has continuous backlight, so it never gets completely black due to light leakage. Real (O)LED displays use a LED per pixel and per color, so the black is (at least in theory) completely black.
So unless some Enfold user out there works in the graphic design industry and has a combination of professional grade graphics card & monitor (like Nvidia Quadro or AMD Radeon Pro, with a EIZO ColorEdge 27″ or Dell Ultrasharp 32″) and professional calibration, there will always be differences,My beef was more about the color difference between characters on the same screen. As as black on LCD screens doesn’t exist, at least theoretically red, green and blue etc. should not suffer the same fate. And of course the “pipe” character is more susceptible, since it is so thin.
But let’s just leave this behind us, I’m sure we all have bigger fish to fry than the color artefacts on a pipe character :-)
Sorry for taking up your time wih this!Regards,
Rob- This reply was modified 4 years, 4 months ago by rob2701. Reason: adjusted description a bit
Hi Mike,
Thanks for that. I added the CSS, and indeed it is different then, just more noticable :-) See for yourself.
I added a next blog post with two screenprints (png24 because more accurate), one before the CSS and one after.
To my eyes there is a definite color change for anything that has a pipe character.
In the original blogpost with the issue I added some lines with normal letters like L undercase and I undercase and b to show the difference in color better.In short: the best way to see it is to do 3 lines in a paragraph:
xxxxxxxxxxetc.
\\\\\\\\\\\\\\\\\etc.
||||||||||||||||||etc. (pipe)
/////////////////etc.
wwwwwwwetc.
I hope I don’t need an eye doctor, or a new laptop :-)Rob
- This reply was modified 4 years, 4 months ago by rob2701. Reason: Added best way to see it
Hi Mike,
Thanks for looking into this, it’s a really strange phenomenon.
Especially since I also see the colors on the screenprint image you posted :-)
line 1,3,5 on the image show green vertical bar
line 2 and 4 on the image show purple vertical bar
I was suspecting it could be my screen only but it happens also on another screen.
And the arrowpoints are always proper black.
I notice it more when I have the luminosity turned up, but it is really there for me. And the strange thing is it disappears when I do the same on a different theme.
Remark:
The “classes of the parent element” doesn’t explain why all lines under normal <p> have different colors depending on the number of characters before the vertcial bar/downarrow/uparrowI am stumped. :-))
Kind regards,
Rob- This reply was modified 4 years, 4 months ago by rob2701. Reason: Added remark about lines under normal
Hi Ismael,
Thanks for looking into this. I have entered the change in the child theme functions.php (starts at line 358).
Unfortunately it doesn’t do what I wanted to achieve, probably I didn’t explain it well enough.
When I have a blog post open from the Blog page, the breadcrumb still shows:
<site>/category/blog
What I want to achieve is that the breadcrumb on an open blog post points to <site>/blog, so to the Blog PAGE, _not_ the Blog category (which is the archive page). I hope I explained it better this time.Thank you for your help and for your patience with my explanations… :-)
Rob
July 2, 2020 at 2:03 pm in reply to: No ReadMore or Pagination on alternative template Blog Posts #1227496Hi Ismael,
Thanks for the explanation, all clear now to me, finally :-)
My child theme archive.php contains:
'contents' => 'excerpt_read_more'
Yet I cannot seem to get the “ReadMore” to show up. Any ideas on that?
Kind regards,
RobRemark added 2020-07-03:
When I create a page with a Blog Archives widget in the content area, then the readmore link show just fine on those blog archive pages. So, although I am still curious as to why it doesn’t show on my alternative (archive) blog posts page despite being set, I will not be using it there (or anywhere else), because I already have the image linking to the article and the ReadMore would just create a redundant (duplicate) link to the same post.
So no hurry, just curious about it. Thanks for all your help!- This reply was modified 4 years, 4 months ago by rob2701. Reason: Remark added 2020-07-03
July 1, 2020 at 10:04 pm in reply to: Please support no-cookie solution in Video embedding shortcode #1227339for a solution for embedding in posts and pages etc. see:
https://kriesi.at/support/topic/enfold-youtube-plugin-with-no-cookie-option-for-eu-dsgvo/#post-947842for a solution for embedding in a masonry portfolio gallery see:
https://kriesi.at/support/topic/open-youtube-videos-with-privacy-enhanced-mode/Kind regards,
RobP.S.
YouTube privacy-enhanced mode may set cookies for bandwidth-discovery and views-increment (no personally identifiable info).Even with YouTube’s privacy-enhanced mode, as soon as you click “Play” on an embedded video, YouTube sets a Flash cookie (LSO, Local Shared Object) on your system (from s.ytimg.com – a domain controlled by Google). Flash cookies can back up the data that is stored in other cookies. When you delete cookies, Flash cookies remain, which means that a website may still recognise you if it backed up the deleted cookie information to a Flash cookie. Flash cookies can be removed using the Adobe Flash Settings Manager.
The Flash cookie info was from a 2009 article about the youtube player. In the present day, the regular embedded youtube HTML5 player sets doubleclick tracking cookies, while the nocookie variant doesn’t. Just that makes any minor bugs with the nocookie variant infinitely bearable.
P.S.2
All major browser vendors will stop supporting Flash at the end of 2020 or before. Hooray! :-)- This reply was modified 4 years, 4 months ago by rob2701. Reason: Adapted flash cookie info with html5 info
Hi Ismael,
Thanks for looking into this.
I would like the breadcrumb to always point to the Page with the Blog category I set up.
So when a Blog post (single) is opened the breadcrumbs “Blog” always points to the “Blog Category Page”, never to the “Archive for category: Blog”. That would remove the whole issue with the breadcrumb on the Archive page from the site and from sight. :-) But I cannot figure out how to get that done.
It is somewhat confusing for me that concerning the blog post WP overrides so many things from the theme, I could not find clear instructions on how to get all settings right when using an archive page susbstitute like I do. But perhaps I’ve looked in the wrong places or did not understand it well enough. Your help is much appreciated (I can see how busy you guys are on the support forum).Kind regards,
RobP.S.
I suspect the issue is with the breadcrumbs filter in my child theme functions.php (described earlier above), called “// breadcrumbs filter for blog posts, stop breadcrumbs showing category for news”
I just don’t have the coding knowledge to adapt that to show the page_id in the trail instead of the category.
I just knew my lack of time spent learning to code would come back to haunt me one day :-))
So if you could help me adapt that to point to the page instead of the category, perhaps that is the solution?
But I’m not quite sure, maybe you have a different idea.Thanks again!- This reply was modified 4 years, 4 months ago by rob2701. Reason: breadcrumbs filter in my child theme idea added
June 30, 2020 at 12:32 pm in reply to: No ReadMore or Pagination on alternative template Blog Posts #1226714Hi Ismael,
Thanks for the clarification. Almost ashamed now, I should have realised that the archive page used depends on the WP Reading setting which was indeed 12. I had only looked at the Blog Posts element itself, where I had set the number of posts to 3 and noticed no difference. Thanks for solving that by pointing it out. My bad. Works perfectly once I do the post number per page in the WP Reading setting… :-))
Added remark 2020-07-01:
Since pagination for Blog posts only obeys the “WP > Settings > Reading > Blog pages show at most:”
So what is the setting in the “Blog Posts element > Pagination > Post Number” for?
Since that is always overridden by the WP Reading setting, perhaps it is better if the setting in the Blog Posts element mentions something like “This number is taken from the WP Settings > Reading” and remove the dropdown to set the number of posts? Just a thought for the next theme update. :-)What remains is the ReadMore button which refused to show up, even though (in the Blog Posts element) I have set it to display “Title and Except + ReadMore”. How can that be solved?
By the way, related to this are some breadcrumb issues with the archive blog page, different thread (same page on this website):
https://kriesi.at/support/topic/breadcrumbs-in-blog-archive-page-layout/Thanks for your time! Kind regards,
Rob- This reply was modified 4 years, 4 months ago by rob2701. Reason: Added remark regarding post number setting in blog posts element
Hi Mike,
Thanks for this script, that was superquick! I added it and it works brilliantly! All duplicate link alerts are now gone from those two pages. Check it out on the dev site if you want.
Thanks again for all the help and for your patience. Kudos.
Kind regards,
RobHi Mike,
Sorry, that was my mistake, I had deleted something from the child theme functions.php, but not well enough, left a “\\” in, resulting in the infamous “cookies are blocked” error and white screens. Fixed now.
Thanks for your continued help!
RobHi Mike,
Once again, thank you for your patience and help in sorting through this. Please feel free to test things out on the dev site provided, it’s a copy and well backed-up. I have added your script in a code block on both the T and the I page. Then I set the first portfolio item in the I page to “Display Neither”. Nice solution! This seems to properly take care of the WAVE errors. You can see it on the dev site. I also added the code block with script to that first “I” portfolio item, and it works well there too! Great!
Regarding the second issue, that was about duplicate links, on the page with the overview of the T/I (so the Portfolio Category pages, grid)
and on the Portfolio items themselves when opened. There the same links are set (independently) on both the featured image and the Portfolio Item Title, resp. the masonry created preview img and the (invisible) title. Resulting in the WAVE tool alert about Redundant Links.I feel (but please correct me if I’m wrong) that it would be better to set the one link on the container, so it would be independent of whether titles/images are shown.,That was a stupid suggestion by me, as that is already the case :-)
Seems the masonry entry ID needs to be targeted for that. Sorry for the confusion!
Again, I err. The links are not independently set but they show up twice anyway. This must be something in the masonry script. Frankly, I’m out of my depth here, so I’ll stop saying stupid things… :-))Just trying to fix the horrible mess I made in the description of the redundant links alerts in the Portfolio Category Page:
Image link now set on: .grid-image
Title link now set on: .grid-entry-title entry-title
could be set on: div.grid-entry:nth-child(1) > article:nth-child(1)
Sorry for the confusion created!Kind regards,
Rob- This reply was modified 4 years, 5 months ago by rob2701. Reason: Just trying to fix the horrible mess I made in the description of the redundant links alerts
Hi Victoria,
I think I understand it now, somehow the last row in the tablet view adapted to a minimum width by not having it specifically set. Still strange that every time 1 more element added solved it too…
It’s understandable you did not see the issue before, someone would have to have tried (like I did) exactly 1 more element than the number of desktop view rows created by the chosen number of elements per row in the desktop view (whether 3, 4, 5 or 6). I mean what are the odds?
I just happened to stumble upon it by chance :-)Thanks for your patience and help! Issue solved, you can close this one.
Rob- This reply was modified 4 years, 5 months ago by rob2701.
Hi Victoria,
Thanks for the quick solution and answer, it works very well with the filter.
Thanks to all, and you can close this issue.Kind regards,
RobHi Victoria,
Thanks, that works well. But I also had to add some CSS to that, because as I mentioned above, the groups of 4 otherwise have too much margin between them (retained from the desktop size view) compared to the groups of 2 in the tablet size view:
/* Adjust last section/element on INFO grid row page too small on tablet */ @media only screen and (max-width: 989px) and (min-width: 768px) { #top.page-id-620 #av-layout-grid-1 div .av_one_fourth { width: 48%; } div.flex_column_div:nth-child(5), div.flex_column_div:nth-child(6), div.flex_column_div:nth-child(9), div.flex_column_div:nth-child(10) { margin-top: 30px; } }
Because I always like to understand why this happened in the first place like I described above (only the very last 4n+1 element becoming a smaller size), can you explain? I fail to see how that percentage setting could affect only that last element — I did not change that with CSS anywhere, except when trying to fix the issue on tablet view :-)
see #1225329 above, this happened without any of the tried fixes from my part:
Additional info:
This ONLY happens with 5 or 9 or 13 elements, strangely enough, so at the exact points of the desktop 4-per-row+1. When you clone the last element however, so to get 6, 10, 14 elements, everything is fine again, even with the tablet size. Then the only remaining issue is the top-margin between the original desktop-4-per-row even on the tablet-2-per-row. Which can be easily fixed with CSS.
But it seems the problem is there with 4n+1 on the tablet-size view (obviously when you use one_fourth elements like me).
When using one_fifth element the same logic applies, but then for 5n+1.I notice that in my previous fix attempt I used the wrong media query for tablet, but that has nothing to do with the issue itself.
And also, is this something that will be included in a next update?Thanks for your help,
Rob- This reply was modified 4 years, 5 months ago by rob2701. Reason: Added questions
Hi Victoria & Devs,
Thanks for this quick solution, works great.
I know these settings are only responsible for a little speed improvement compared to images, but still, every little bit helps. And of course the icon fonts don’t have replacement fonts.2 questions:
I have an additional entypo-fontello-extra font (with some additional icons) also served from local, but that still has :swap. How can I add that as well?
And also, is this something that will be included in the theme interface with an update? That would allow users to select the icon fonts to set font-display:block on.Reason is over time the child theme functions.php is starting to look like a christmas tree with all the code changes added… :-))
Kind regards,
RobHi Victoria,
Yes of course it does, for me too, with the desktop size (4 elements per row).
The problem is with the tablet size (2 elements per row), like I wrote above. Jusr resize the browser window, you will see the issue.
Again, desktop and phone sizes are fine. Tablet size is the issue.
With the tablet size, you see the 9th element become much smaller than the others.
And when you apply the CSS (uncomment it at the bottom of Quick CSS), then you will see that size and the padding is all fixed, but then the subpages get a very narrow content space.Kind regards,
RobAdditional info:
This ONLY happens with 5 or 9 or 13 elements, strangely enough, so at the exact points of the desktop 4-per-row+1. When you clone the last element however, so to get 6, 10, 14 elements, everything is fine again, even with the tablet size. Then the only remaining issue is the top-margin between the original desktop-4-per-row even on the tablet-2-per-row. Which can be easily fixed with CSS.
But it seems the problem is there with 4n+1 on the tablet-size view (obviously when you use one_fourth elements like me).
When using one_fifth element the same logic applies, but then for 5n+1.- This reply was modified 4 years, 5 months ago by rob2701. Reason: Added still more testing info of when this issue happens on tablet size view
Hi Victoria,
Sure, forgot to do that. It’s in the private field with a small explanation.
Kind regards,
Rob- This reply was modified 4 years, 5 months ago by rob2701. Reason: Added explanation for subpages behaviour
-
AuthorPosts