Forum Replies Created
-
AuthorPosts
-
Thanks, Nikko
That CSS addressed the problem on the read more issue – see second blog post element on page https://owe.brother.design/excerpt-test/. This element displays portfolio or custom posts that use the_project custom field as the excerpt.
The first blog post element on the page https://owe.brother.design/excerpt-test/ – uses the element to pull in standard posts and uses the standard excerpt field on these posts. You can see that the excerpt is neither shortened to 50 words nor has the read more.
Any thoughts how to fix it in that scenario?
Hi – just checking in. Any thoughts?
One other thing – I created this test page. This uses blog posts element throughout (no portfolio grids). https://owe.brother.design/excerpt-test/
Blog post element 1 – calls standard posts and uses the standard excerpt field. This element is not working as I’d like because it does not shorten the excerpt or add ‘… Read more >’.
Blog post element 2 – calls portfolio posts and uses the_project custom field as excerpt.You’ll also notice that when the excerpt is longer than 50 words and the excerpt is edited then the ‘… Read more’ works correctly by being inserted after the 50th word.
If excerpt is shorter than 50 words then the ‘… Read more’ is after a line break which is inconsistent and not as desired. Also when the excerpt is shorter than 50 words it’s displaying the full excerpt and therefore the ‘…’ is not actually necessary or grammatically accurate. Can we remove the ‘…’ under those parameters and display the ‘Read more’ directly after the last word of the excerpt?
Does that makes sense? And thanks in advance.
Dominic
- This reply was modified 1 year, 11 months ago by domchocolate.
BTW I sorted the portfolio grid by using the post element to call portfolio items instead.
Hi Nikko
Basically, it works for the posts element, see – https://owe.brother.design/sites/oxpens-phase-1/ under heading Other development opportunities when the post element is calling a custom post and using the_project as an excerpt. But for some reason not in the second post element on the same page under the heading Related news and updates – this one uses a post element calling standard posts from the blog and using a standard excerpt field (doesn’t shorten the excerpt to 50 words or add [more info].
Also, it doesn’t work at all for portfolio grids, see – https://owe.brother.design/project-item/oxford-station-western-side/ under heading Other projects.
Code added as Code snippet
Any thoughts?
Also is it possible to use the excerpt from an excerpt field when the_project either hasn’t been utilised or isn’t on another post type?
In other words:
Post types I have =
Portfolio items – use the_project custom field as excerpt
Sites – use the_project custom field as excerpt
Posts – doesn’t have the the_project custom field so use excerpt field for the excerpt.Thanks in advance.
November 29, 2022 at 12:56 pm in reply to: Using and editing avia-builder.css in a child theme #1374264Brilliant. Thanks Mike.
Hi Nikko – thanks for this but no cigar I’m afraid. It’s pulling the excerpt from the_project through but not cutting it to 50 words.
See links below and PW in private content.
Masonry portfolio element:
https://owe.brother.design/project-item/oxford-station-western-side/Blog post element:
https://owe.brother.design/sites/oxpens-phase-1/Thanks in advance
DominicThat’s worked, thanks!
Thanks Nikko – that’s great. And works a treat. Is there a way to put a word count – say the first 50 words and then add a “…” at the end or a [READ MORE]??
Hi thanks for that. Doesn’t seem to be working for me though. Example here: https://owe.brother.design/sites/oxpens-phase-1/
Sorry – I’m no expert. Can you elaborate? How do I add that to my code above? The excerpt needs to be replaced by a custom field.
Thanks in advance
Dominic
October 24, 2022 at 10:38 am in reply to: Regarding a previous query regarding Hotspots and tabbed section #1369947Hi guys – seems buggy on one computer. My other one seems fine. Please can you keep this thread open for a little while just in case.
Dominic
October 21, 2022 at 6:16 pm in reply to: What is the custom post type name for Portfolio entries? #1369752Thanks Mike
That makes sense!
October 21, 2022 at 10:27 am in reply to: What is the custom post type name for Portfolio entries? #1369708Thanks.
Here’s an example here: https://owe.brother.design/post-test/ – it just gets locked into 4 columns.
October 20, 2022 at 9:36 am in reply to: What is the custom post type name for Portfolio entries? #1369546Hi thanks for that. I was using blog posts but I am swapping out to a portfolio grid because for some reason blog posts isn’t being responsive. Do you know why I can’t make a blog post stretch 4 columns desktop, 2 on tablet, 1 on mobile. It crams 4 columns across it all.
Dominic
PS Code works well
- This reply was modified 2 years ago by domchocolate.
Hi Rikard – did you do anything? It all seems to be working now!
Here you go
I’ve created a new page and still no joy
https://owe.brother.design/project-item/test-page/
The edit is at https://owe.brother.design/wp-admin/post.php?post=481&action=edit
Would you mind taking a look? Can you remind me of that temporary access plug-in??
Would you mind taking a look for me on my site?
Not for me. I don’t understand.
Is the Image field returning an ID, URL or array?
Hi Rikard
I’m glad to say that the shortcodes work in most of the elements I’ve used so far. Eg. here in hotspots https://owe.brother.design/projects-2/ password below – all the hotspot copy is generated through ACF fields added to portfolio item posts. I guess it’s where I use the shortcode in an element that has a WYSIWYG or text field to edit them.
With the ACF image field, however, it works in that it will call the image URL if I place the shortcode on its own in a text field (see https://owe.brother.design/project-item/oxford-station-eastern-side/). The problem comes when I want to call that image using HTML
<img src="[insert acf shortcode]'....</img>
– the shortcode is either not recognised or is truncated automatically by the Builder.If the image element in ALB had a field to add a shortcode that may work. Or other elements (eg section, columns) had a field to add a shortcode to insert a background image which could be another possibility.
Any thoughts on that?
Dominic
- This reply was modified 2 years, 1 month ago by domchocolate.
- This reply was modified 2 years, 1 month ago by domchocolate.
I realise I can use CET but I want to lock-down content too within a table or paragraph
Sorry, Mike. Sussed is a colloquial term I guess. It means sorted; figured out; solved. Thanks again!
Aha – sussed it!
Not quite – I want to use SVGs in there but I’m having issues with sizing. Any ideas how to get svgs to behave like pngs?
Whoop, whoop! That’s brilliant. Thanks Ismael!
April 14, 2022 at 12:54 pm in reply to: Adding social media icons to mobile menu on mobiles only #1348376I think we can close this one. Thaks again
Dominic
April 14, 2022 at 11:24 am in reply to: Adding social media icons to mobile menu on mobiles only #1348345Not to worry – I found a different way.
Dominic -
AuthorPosts