-
AuthorPosts
-
August 2, 2024 at 11:55 am #1463624
Hi,
I’ve been struggling for a few days now trying to work out how to apply a custom template to a category so I can change the look and feel of the post pages for the posts belonging to that category. Ultimately I want to add ACF fields to them. My site is in maitenance mode at the moment, but I’m incluing my admin access details.
How can I get a page like this to show some ACF custom fields and also modify the look of it a bit (I think the image is too big)?
https://guardingtheguards.com/journal/garda-review-feb-1980/Is there a tutorial on how to this? I’m so frustrated working on this for days and getting nowwhere!
Thanks
Lucy
August 4, 2024 at 2:15 pm #1463758Hey lucybb2,
Thank you for your patience and the login, I see your CPT “Journal” do not have a ALB builder field, I believe that this is because your CPT is not enabled in the theme. Typicality you would enable Enfold Theme Options > Layout Builder > Show advanced options
Then add your CPT to Activate Your Custom Post Types For ALB
and now the ALB button shows in your CPT:
and now you can add elements to the page:
I did the steps above for you, please check.Best regards,
MikeAugust 5, 2024 at 12:15 am #1463803Thank you Mike.
I am trying this now.
But does this mean that I have to edit every “Journal” item individually? There are thousands. I thought they’d be a way to say, if post type = X then put out these custom fields. I didn’t think I’d have to do it page by page.
Thanks
Lucy
August 5, 2024 at 5:04 pm #1463853I’ve found a tutorial here which is helping :)
August 5, 2024 at 5:21 pm #1463855Hi,
In your Journal CPT you will add the “Custom Layout” element like you did here:
Which uses your “Custom Layout” here:
In your layout the image must have a placeholder image, I added this for you so your image will show:
but your image text is too long unless you use css, to answer your question, you will need to add the “Custom Layout” element to each post unless you add the ACF code to the page another way, perhaps a PHP function. I’m not sure about that we intended to use the “Custom Layout” element.Best regards,
MikeAugust 5, 2024 at 6:18 pm #1463862Thanks for the help Mike. I’m getting there I hope!
As the template is separate and it is just as small change I have to do to pages, or as I set them up, I think that’s ok.
Yes my picture descriptions are often very long. But that’s deliberate. I want to make the website as accessible as possible for visually impaired people etc. I’ll move the picture descriptions to below the image or similar.
LucyAugust 5, 2024 at 11:29 pm #1463882Hi,
Glad that we could help, you could show the picture descriptions as a text element below the image in the Custom Layout.
Let us know if you have any other questions, or if we shall close this thread.Best regards,
MikeAugust 6, 2024 at 5:43 pm #1463966Thank you. With your help I’m finally getting there. Yes you can close this thread thank you.
August 6, 2024 at 9:34 pm #1463979Hi,
Great, I’m glad that Mike could help you out. We’ll close this thread for now then, please open a new thread if you should have any further questions or problems.
Best regards,
Rikard -
AuthorPosts
- The topic ‘Enfold and ACF, customising posts’ is closed to new replies.