djoliverm
Forum Replies Created
-
Forum: Plugins
In reply to: [Passster - Password Protect Pages and Content] Captcha Hint in BackendHave the same issue. Tried activating it to see if it would go away, but no luck.
Forum: Fixing WordPress
In reply to: Password Protected Pages Won't LoadUhhh, same exact issue on Hostgator. Have tried disbaling all plugins, changing passwords, making sure the password is correct in myPHP (it is), even resetting to a standard .htaccess (using BPS Security) and no dice. Have absolutely no idea what could cause this, and it just started happening recently out of the blue. Other installations I’ve done that use the same theme and setup seem perfectly fine.
Hey thanks for the reply. So yeah, through the inspector I can see which line of code I have to change, the problem I think is that the responsive.css supersedes everything else, so just dropping the same code in my child style.css does nothing. The original line of code also has an !important tag originally, so only way that I’ve been able to get everything to work is to comment out that line in the original responsive.css. Here is what it looks like originally:
@media only screen and (min-width: 480px) and (max-width: 690px) { body .container, body div.slider-nav { max-width: 420px!important; }And this is what I need it to be:
@media only screen and (min-width: 480px) and (max-width: 690px) { body .container, body div.slider-nav { max-width: 90%!important; }I tried putting in the code you suggested, but it didn’t seem to enqueue the responsive.css in my child theme. When I look in the inspector at the head, I see two versions of the responsive.css being pulled, with ids of “responsive-css” and “responsive_css-css”, but both from the parent theme. Just still not sure how to get it to load the child theme version.
Thanks again for your help!
It’s from the parent theme. Basically what I’m trying to do is adjust a particular line of code so that at horizontal mobile sizes, it pushes the content to 90% of the width (currently it’s like 480px, so it doesn’t fill up the space when switched to horizontal viewing). Only way to do that would be to change that line in the parent theme’s responsive.css which lives in the css folder in the parent theme. That’s why I’d like to just load up an edited version of that responsive.css in my child theme so whenever I update the parent theme there are less things to tweak every time.
Hope this makes sense!
Yeah I was reading on the codex that this would help if it wasn’t loading up properly, but say for example the code below:
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' ); function theme_enqueue_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css', array('parent-style') ); } add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' ); function theme_enqueue_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/css/responsive.css' ); wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/css/responsive.css', array('parent-style') ); }The responsive.css that’s in my child theme isn’t being loaded. I’m assuming I’m doing something wrong here, but just curious how to go about loading that responsive.css from my child theme.
Thanks again!
Wow, thank you very much, so I think this is loading up the child theme stylesheet properly, but now let’s say I wanna load up a “responsive.css” in my child theme (or any other CSS I want in my child theme), how would I also add that guy? I tried the following but it wasn’t loading up my child theme’s responsive.css:
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' ); function theme_enqueue_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/css/responsive.css' ); }I’m sure I’m doing something wrong, but if you could help me to load up that other CSS file in my child theme that would be awesome. I basically want to know how to enqueue any other additional CSS or JS file in my child theme.
Thanks in advance!
Forum: Fixing WordPress
In reply to: WP shows plugin update available but all are up to dateI’m having the same issue, and tried the fixes above but no luck. Still have a rogue/ghost “plugin” claiming that it has an update, when all are updated.
Forum: Fixing WordPress
In reply to: Trouble with Plugin Updates (false update notification)I have the same problem, although mine is only 1, and I’ve noticed that you went from 3 to only 2 false/ghost updates. I have a hunch that it might be a plugin that I created myself and was fooling around with but even though I completely deleted it, something might have stuck somewhere and is giving a false positive? [Still, thinking about that, it doesn’t make any sense since that “plugin” I made would have never had any updates to speak of…hmmm…]
Cool, I understand. I was able to mess about in the CodeMirror folder and was able to port the themes since they’re on the latest CodeMirror repo. Thanks for the tip!