Skip Navigation

[Resolved] Voodoo spell on category page

This thread is resolved. Here is a description of the problem and solution.

Problem:

I have created a custom template for my posts archive page, and the first post in the grid has no title. Switching from a dynamic heading to a dynamic field shows the title initially, but it disappears after some time.

Solution:

Inspect the markup of the page and find that the heading link has no text. Changing the theme from Child The,e to GeneratePress resolves the issue, indicating a possible JavaScript code problem in the Raypa theme. Contact the theme developer for further assistance.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 4 replies, has 3 voices.

Last updated by Christopher Amirian 5 months, 2 weeks ago.

Assisted by: Christopher Amirian.

Author
Posts
#2701393

Hi,
I have created a custom template for my posts archive page and I am experiencing a weird issue: the first post of the grid has no title.

I don't understand how this is possible, since it's a dynamic grid and all the other posts have the title displayed.
I have tried switching from a dynamic heading to a dynamic field and at first the title is visible, but after some minutes is gone again.

Can you please help me find out what's happening and how can I solve the issue?

You can see the issue here: hidden link
hidden link

Thank you

#2701430

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi there

When I inspect the markup of the pages you shared links to I see that the heading link is included in the markup, but the link has no text.

This is very odd, I don't recall seeing anything like it.

Do you have a staging site we could examine to look into the issue?

Let me mark your next reply as private so that we can get log-in credentials from you—you may want to create a temporary admin user for us to use that you can later delete. And be sure to have a current backup.

#2701761

Christopher Amirian
Supporter

Languages: English (English )

Hi there,

Thank you for the login info after a few checks I have found out that the Raypa theme that you use causes the issue. As soon as I change the theme to GenereatePress it works ok.

So please check with the theme developer, most probably there is a Javascript code that removes the content of the Anchor tag for some reason.

Thanks.

#2701800
Screenshot 2024-06-10 at 08.23.19.png
Screenshot 2024-06-10 at 08.23.06.png

Thank you for finding that out!

I removed one by one all the files within the child theme and the problem was still there.

But when I entered the customizer, I have noticed that if I change the blog option from "Excerpt" to "Full content", the post title shows up. I don't really understand what is going on and why this is happening...

#2701817

Christopher Amirian
Supporter

Languages: English (English )

Hi there,

Unfortunately, I am not familiar with the theme or the underlying code to be able to helpful on this matter.

So what I suggest as a quick solution is to keep the Full content option, and whenever you need to have a blog archive you can use Toolset and avoid using the theme feature.

UIf you use Toolset you can add excerpt instead of the full content as you have the option to do that.

Thanks.