• Resolved relativgut

    (@relativgut)


    Hi, sorry if this has been asked already. I have a CPT created with Pods along with pod templates for single and archive pages. In the templates I used css classes that are styled in the additional css field in the customizer. Since Pods has its access rights feature the css is only applied if the user is logged in. If not, the template works but without the css styling. I′m on WP 6.6.1 and Pods 3.2.6. I already set all access rights to unrestricted. Any hints on what I′m missing?

Viewing 1 replies (of 1 total)
  • Plugin Support Paul Clark

    (@pdclark)

    Are you by chance using shortcodes like [pods] or any from other plugins, or Pods tags like [if] or [each] within the template?

    That comes to mind because of the two parts mentioned:

    • Appearance > Customizer > Additional CSS —?This is a WordPress core feature, depending on theme type. You should see your CSS definitions output in your site HTML whether logged in or not, or whether Pods is active or not.
    • Pods Templates — If the general template is outputting for non-administrators, but certain CSS classes are not, this indicates there may be logic within the template which is restricted by user access level in some way, or other HTML formatting which differs by user type.

    Some things to check:

    • Are any Magic Tags, Template Tags, or Shortcodes being used within the template?
    • If Shortcodes, note the constant for sub-shortcodes required for wp-config.php.
    • Do the CSS classes output or apply to the HTML if the logic of the template is changed or simplified?
    • Is the CSS class that’s expected coming from a certain field?
    • If inspecting the HTML of the pages when logged in or logged out, do the expected CSS classes appear? Is the HTML valid? In what way does the output differ in the HTML from expected, and what was in the template?

    If none of those lead to a solution, please share the exact template and output, as the logic of the template could encounter permission checks in several ways.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.