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

Attributes don't get applied to Inner Content. #3586

Open
israel-clearpg opened this issue Oct 24, 2024 · 2 comments
Open

Attributes don't get applied to Inner Content. #3586

israel-clearpg opened this issue Oct 24, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@israel-clearpg
Copy link

israel-clearpg commented Oct 24, 2024

Any bug report that doesn't include a Sandbox link or replication steps will be closed. If you can't provide these pieces of information, we're happy to help you via our official support channel instead: https://oxygenbuilder.com/support. You need to select "Something's broken and I need help" from the dropdown box on the left.

Describe the bug
I can not add Attributes to the Inner Content competent even though it lets me in the builder. They do not show up when viewing the website live. I've added the attributes to the sandbox below.

When reviewing the component's PHP it looks like the CT_Inner_content class doesn't include <?php do_action("oxygen_vsb_component_attr", $options, $this->options['tag']); ?>

A link to a Sandbox site where the bug has been reproduced https://oxygenbuilder.com/try? (REQUIRED)
Provide the link to a Sandbox install where the issue is present. If the issue only exists on a specific post or template, provide a direct link to that post or template.
https://oxygen-q9qzfnbfrj82l.oxygen-demo.qsandbox.org/

IF YOU CAN'T PROVIDE A SANDBOX REPRODUCTION: Steps required to reproduce the bug:
Steps to reproduce the behavior:

  1. Go to your main template that loads the Inner Content component in your Oxygen Templates.
  2. Click on the Inner Content in the right sidebar to select that component.
  3. Now ti the left sidebar, click on the Advanced tab for that component.
  4. Click on Attributes in the Advanced tab.
  5. Add any attribute. My test was to add role=main for accessibility.
  6. Save the page in Oxygen Builder
  7. View the html on the live site and you will see that there are no added attributes to the Inner Content div.
@israel-clearpg israel-clearpg added the bug Something isn't working label Oct 24, 2024
@KittenCodes
Copy link
Contributor

@israel-clearpg

Please try adding the Inner Content element inside a Div and then add the attributes to the Div.

@israel-clearpg
Copy link
Author

israel-clearpg commented Oct 25, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants