Skip to content

Separator color not working if --text variable is defined #38729

@gabbsmo

Description

@gabbsmo

Description

If I specify a color on a separator I expect that to be shown on the frontend as it is shown in the backend.

I was completely taken by surprise by this.

See this original support issue in GeneratePress: https://generatepress.com/forums/topic/separator-color-not-working-in-front-end/

Step-by-step reproduction instructions

  1. Install and activate GeneratePress theme
  2. Specify a color in the customizer with the variable name --text
  3. Add a separator element
  4. Set a different color
  5. The right color is shown in the backend
  6. Publish
  7. The --text color is shown in the frontend

Screenshots, screen recording, code snippet

No response

Environment info

Latest stable WordPress with no Gutenberg plugin.

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs TestingNeeds further testing to be confirmed.[Block] SeparatorAffects the Separator Block[Status] StaleGives the original author opportunity to update before closing. Can be reopened as needed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions