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

CSS injected into WordPress requires more specification. #139

Open
admjacqus opened this issue Oct 23, 2020 · 0 comments
Open

CSS injected into WordPress requires more specification. #139

admjacqus opened this issue Oct 23, 2020 · 0 comments

Comments

@admjacqus
Copy link

admjacqus commented Oct 23, 2020

After adding a Tutorcruncher Enquiry Form onto a page, using a shortcode like so...

<script src="https://cdn.tutorcruncher.com/socket/latest/socket.js"></script>
<div id="socket-enquiry"></div>
<script>
  socket('*****************', {
    mode: 'enquiry',
    element: '#socket-enquiry'
  })
</script>

The API adds a block of styles to the , which contain a number of h3 type selector styles.

h3 { margin-top: 12px; margin-bottom: 4px; font-size: 24px; font-weight: 400; }

Due to the position of these styles in the head, they are overwriting my h3 styles. Which means I now have to amend my theme or additional CSS in order to keep consistent typography where this form is called.

Simply wrapping the h3 styles in a parent selector or using classes will fix this issue.

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