Thread Starter
Selim
(@devxpe)
I use code snippet. I cannot inject any code into function.php because theme owner is encrypt theme
Hello @devxpe
Thank you for contacting us.
To add custom CSS to your theme, please navigate to Admin-> Appearance > Customize > Additional CSS in your WordPress dashboard. You can input your styles in the provided field.
As a best practice, we recommend avoiding the !important declaration in your CSS. Instead, using a more specific selector is the preferred method for overriding styles, as it improves code maintainability.`
for example
html[amp] .img-cont {
height: 100vh;
}
Please let us know if you require any further assistance.
Thread Starter
Selim
(@devxpe)
@milindmore22 Thank your for your assist!
I applied your suggestion but didn’t work. Help me please
-
This reply was modified 7 months, 1 week ago by
Selim.
-
This reply was modified 7 months, 1 week ago by
Selim.
Thread Starter
Selim
(@devxpe)
Hello @devxpe
As we checked, we didn’t see CSS being added on your site, can you please confirm that you have added it additionally please clear any cache that you are using?
Thread Starter
Selim
(@devxpe)
It didn’t work I used fastest cache but still don’t work
Hello @devxpe
Thank you for trying the code snippet. Can you please share your site health information using this form so we can check which theme you are using for AMP and provide you with better solutions?
@devxpe As we didn’t receive a response I’ll mark this as resolved. Feel free to open a new support topic if you require any further assistance.