- This topic has 7 replies, 6 voices, and was last updated 2 years, 2 months ago by Elvin.
-
AuthorPosts
-
April 16, 2021 at 12:14 pm #1737406VDSolutions
Hello, I’m trying the new feautures of gp premium but there is a thing that really annoys me.
You can add text before the post meta data but you can’t add after it.I’m wondering if there is a way to do this manual or if it’s gonna be easy to add the opposite function by myself.
Thanks in advance.
April 16, 2021 at 5:00 pm #1737499LeoStaffCustomer SupportHi there,
Can’t see too many usages of the after text suffix but I could be wrong.
Can you link me to the page in question?
We can likely achieve it with some CSS.
May 5, 2021 at 7:28 am #1765931ShaneI second this… there are many cases where I’d want to add text before AND after what’s in the post title. Elementor has this functionality, and would love if you guys added it as well!
May 5, 2021 at 7:34 am #1765949DavidStaffCustomer SupportHi there,
that is something we’re looking at adding in a future update.
August 23, 2021 at 11:08 pm #1906197AlexI agree, I am trying to create a dynamic “location page” template for our service areas to help with SEO and would love to be able to add the dynamic tag BEFORE the rest of the title.
e.g. Page 1: <Dynamic Tag “Australia”> Mobile Physiotherapy Service.
Page 2: <Dynamic Tag “New Zealand”> Mobile Physiotherapy Service.Is there anyway to achieve this with CSS? OR another way to achieve this? I am looking at creating up to 50 location pages, and this would speed the process up massively π
Thanks in Advance!
Alex
August 24, 2021 at 12:04 am #1906239ElvinStaffCustomer SupportHi Alex,
Is there anyway to achieve this with CSS? OR another way to achieve this? I am looking at creating up to 50 location pages, and this would speed the process up massively
We can dynamically add the value using PHP snippets hooking dynamic variables on CSS properties on the wp_head of the site.
Say, for example, you have an ACF field for a dynamic tag you want to put as suffix of entry-title.
add_action('wp_head',function(){ $suffix = get_field('your_suffix_tag_field'); echo '<style> .entry-title:before{ content:"'.$suffix.' "}</style>'; });
Now this is full PHP manual coding.
You can skip the
add_action()
and actually add display rule location conditions if you do this on a Hook Element.
https://docs.generatepress.com/article/hooks-element-overview/It still requires a bit of CSS and PHP but it can be more simplified. π
February 20, 2022 at 2:59 pm #2126769ShaneAny update here? Still need dynamic content suffix option…
Any work around until ya’ll add it?
Thanks
February 20, 2022 at 8:13 pm #2126909ElvinStaffCustomer SupportHi Shane,
The PHP code I’ve provided on my previous reply is a workaround.
It can be modified to fit your specific purpose. We just need to change the selector added in it.
Can you open a new topic and provide the details of the site and the part to apply it on? So I can inspect the page and modify it for you. π
-
AuthorPosts
- You must be logged in to reply to this topic.