[Resolved] generate-style-inline-css missing from post

Home Forums Support [Resolved] generate-style-inline-css missing from post

Home Forums Support generate-style-inline-css missing from post

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #2155691
    Steven

    We’ve run into this several times in the past and are unsure what’s causing it. It seems to happen to a single user, but we’re unsure it’s only limited to that user. When we publish news posts, the max-width is set to 800px. That’s what we’d like to see every time. However, once in a while that doesn’t appear to get applied and the max-width is left at 100% for

    #2155960
    Ying
    Staff
    Customer Support

    Hi Steven,

    The posts are set to full width.

    You can check 2 places:

    1. In this post editor, find the layout meta box, check if the content container is set to full width, if so, switch it back to default.
    https://docs.generatepress.com/article/layout-metabox-overview/#where-is-it

    2. Go to appearance > elements, check if there’s a Layout element assigned to posts or more specifically posts of this author, if so, check if content container width is set to full width there.
    https://docs.generatepress.com/article/layout-element-overview/#content-1

    Let me know 🙂

    #2155975
    Steven

    The layout meta box is set to default on both news posts.
    There are some layout elements, but none are set to trigger on a specific user.

    #2156018
    Ying
    Staff
    Customer Support

    In the post, what elements does it show?
    https://www.screencast.com/t/oLMItJBN719

    You can also try to set all of your layout element to draft to see if the issue goes away.

    #2156024
    Steven

    Ah – good catch. There is one more element that’s active on the full-width news release that is absent on the fixed-width news release. We’re not sure why it’s being applied to this specific news release though. In the relevant element, the display rules are:

    Event: All Events
    Avent Archive
    Event Category Archive: All Event Categories
    Venue: All Venues
    Organizer: All Organizers
    Event Tag: Choose…
    Event Category: Choose…
    Event Tag Archive: All Tags

    In the list of elements, there is a difference in the last display rule which reads “Post Tag Archive” instead of “Event Tag Archive”. Not sure if those are supposed to match or not.

    The intent of this element is to force all of our The Event Calendar Pro pages to full-width.

    Wonder how it’s getting applied selectively to this particular news post.

    #2156026
    Ying
    Staff
    Customer Support

    Can you try remove Event Tag: Choose… and Event Category: Choose… from the display rule?

    As Tag is WP core taxonomy, so it would include posts which have tags set as well, I think that’s why it shows Post tag archive instead of Event page archive.

    Just check, do these 2 posts have tags and other posts don’t?

    Let me know 🙂

    #2156939
    Steven

    Excellent! We didn’t realize the Event Tag would include “Post Tag”. Once we removed that, the width was back to fixed 800px. The difference we didn’t spot between the two news posts was the full-width had a a value in the Tag field. We didn’t think to look there as we don’t train our staff to use that field. That’s why not did this issue seem to be linked to a specific user, but also why it was inconsistent for that user. They must not be using tags for all of their posts. Appreciate the help 😉

    #2156986
    Ying
    Staff
    Customer Support

    Glad we get this sorted 🙂

    You are welcome!

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.