Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Single.php is not used in Custom Post Types with Display Conditions #305

Open
alvarindev opened this issue Jul 18, 2023 · 0 comments
Open

Comments

@alvarindev
Copy link

alvarindev commented Jul 18, 2023

Hello,
I don't understand why this is happening. I've created a child theme and then I've added some classes to the body, the main tag...
So I expect to have these modifications in all the site, nevertheless I just see in pages and not in CPT.

Page HTML

<main id="content" class="site-main post-162 page type-page status-publish hentry">

	<div id="swup" class="page-content transition-fade" data-swup="0">
...

CPT HTML (custom article tag but also happens with the div tag)

<article data-elementor-type="single-post" data-elementor-id="76" class="elementor elementor-76 elementor-location-single post-56 work type-work status-publish hentry work-year-2 work-type-shortfilm" data-elementor-post-type="elementor_library">
.....</artilce>

So where I've to modify this .php template? in the debug I see what I expect
Screenshot 2023-07-18 at 13 34 10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant