kuckovic
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Parent css overwrites child css responsivenessValid point!
We’ll keep it in the forum then.
@robinburen – can you copy/paste your child-theme functions.php to https://pastebin.com/?
That way, I can have a look at the functions-file as a whole.Best regards
Forum: Fixing WordPress
In reply to: Parent css overwrites child css responsivenessAh, I see.
Hmm, let’s see if we can link-up on Teamviewer tomorrow then 🙂
If you haven’t fixed it by then.Forum: Fixing WordPress
In reply to: Parent css overwrites child css responsivenessHave you activated the child theme??
As far as I can see, you have the “Minamaze” theme activated.
That is the parent theme.Forum: Fixing WordPress
In reply to: Parent css overwrites child css responsivenessHi @robinburen
I’m actually on my way out of the office for today.
One thing I notice aswell – you’re not running on the child theme??
Or am I wrong? 😛Forum: Fixing WordPress
In reply to: Parent css overwrites child css responsivenessHi @robinburen
Hmm, I can’t see it’s enqueued AFTER the responsive stylesheet.
BUT! If I manually move the style.css and make it load AFTER the responsive stylesheet – it works great.If you want, I can take a look in your backend.
It’s easier for me to see the code in your functions.php etc.
What do you think?// Aris
Forum: Fixing WordPress
In reply to: Parent css overwrites child css responsivenessAh okay!
Well, let’s enqueue the style.css AFTER the responsive-stylesheet.
Can you edit the code from before, and change it to:function theme_enqueue_styles() { wp_enqueue_style( ‘responsive-style’, get_template_directory_uri() . ‘styles/style-responsive.css’ ); wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ ); } add_action('wp_enqueue_scripts', 'theme_enqueue_styles');Forum: Fixing WordPress
In reply to: Parent css overwrites child css responsivenessThanks for the tip!
Great advice@robinburen
Can you check the site if you go to this URL then: https://www.opsneeuwvakantie.nl/?ao_noptimize=1For me, I get another result(!)
Forum: Fixing WordPress
In reply to: Parent css overwrites child css responsivenessHi @robinburen
Autoptimize can be set to combine your CSS – and that may have an impact on the frontend.
Can you deactivate that rule in Autoptimize?Just for test purposes.
// Aris
Forum: Fixing WordPress
In reply to: Parent css overwrites child css responsivenessHi again 😀
I see now.
I also see, that you have a plugin which compiles/combines the stylesheets.
This might be the problem.Are you familiar with this?
Forum: Fixing WordPress
In reply to: Parent css overwrites child css responsivenessYes, correct 🙂
I will have a look at the site then.
Can you send me the URL aswell?Forum: Fixing WordPress
In reply to: Parent css overwrites child css responsivenessHi @robinburen
Can you put the code in functions.php – and please send me a link to the website?
I will have a look at it then 🙂Best regards
Forum: Fixing WordPress
In reply to: Content box not good size in mobile versionHi again
I’m glad it worked 🙂
What is did is it applies to screensizes that fits the “mediaquery” – which is 576px.
576px corresponds to a mobile in landscape mode – you know, you flip it for widescreen.You can read more about mediaqueries here:
http://devfacts.com/media-queries-breakpoints-2020/You can’t apply the exact same code to other elements.
This depends on the element-class.
Chrome has a built-in inspector, which is REALLY good to use, when trying to find out what the element-classes are – have a look at it here:
https://designtlc.com/use-chrome-inspector-edit-website-css/Please let me know if there’s anything I can do 🙂
// Aris Kuckovic
Forum: Fixing WordPress
In reply to: Parent css overwrites child css responsivenessI would do it like this:
function theme_enqueue_styles() { wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ ); wp_enqueue_style( ‘responsive-style’, get_template_directory_uri() . ‘/styles/style-responsive.css’ ); } add_action('wp_enqueue_scripts', 'theme_enqueue_styles');You should NOT copy your style.css into the responsive stylesheet.
// Aris
Forum: Fixing WordPress
In reply to: Parent css overwrites child css responsivenessHi Robin
Lunch is important – never skip it (just like legday :P)!
You’ll need to import the responsive CSS aswell – otherwise it won’t work.
You know how to do it?
If not, I will help you write the enqueue-script:)Best regards
Aris KuckovicForum: Fixing WordPress
In reply to: Will my followers get emails if I convert many pages to posts?No worries!
Please let me know if you need anything else 🙂Have a nice day 😀