kimaldis
Forum Replies Created
-
Forum: Plugins
In reply to: [Options for Twenty Twenty-One] Modifying twentytwentyone menu breakpointsI can’t believe I missed that. Many thanks
Forum: Themes and Templates
In reply to: [Twenty Twenty-One] customising css in child style.cssSolution, the following code in functions.php
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' ); function my_theme_enqueue_styles() { $parenthandle = 'twenty-twenty-one-style'; // This is 'twenty-twenty-one-style' for the Twenty Twenty-one theme. $theme = wp_get_theme(); wp_enqueue_style( $parenthandle, get_template_directory_uri() . '/style.css', array(), // if the parent theme code has a dependency, copy it to here $theme->parent()->get('Version') ); wp_enqueue_style( 'custom-style', get_stylesheet_uri(), array( $parenthandle ), $theme->get('Version') // this only works if you have Version in the style header ); }
Forum: Installing WordPress
In reply to: Installing second wordpress next to existing oneActually, I’m less bothered by this now, I can get to the backend from the Softaculous management page and I’ve a feeling it’ll sort itself when I redirect to the new one.
thanks all for the input.
Forum: Installing WordPress
In reply to: Installing second wordpress next to existing oneI have this:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule># END WordPress
<Files 403.shtml>
order allow,deny
allow from all
</Files>deny from 31.192.105.52
deny from 5.39.218.254
deny from 91.200.12.33Forum: Installing WordPress
In reply to: Installing second wordpress next to existing oneURL and WP IRL are both good
I’ve done this myself too and it’s never been a problem. I think you’re right, it’s looking like .htaccess. I was hoping never to have to deal with that. Oh well.
Thanks.
Forum: Installing WordPress
In reply to: Installing second wordpress next to existing oneSorry, typo in the post. I’m using it correctly here.
Forum: Developing with WordPress
In reply to: React in an admin pageAnswering my own question, as it turns out the answer was a bit obvious:
wp_enqueue_script( ‘react’ );
wp_enqueue_script( ‘react-dom’ );fixed the React & ReactDOM undefined. wp undefined was irrelevant, I was loading a script somewhere it wasn’t needed. Where it is needed, in a Gutenberg block def, WP loads it for me, so I’m good.
Caught it. I’d hardcoded ‘https://’ in the qp_login_url() string on a site that was using ‘https://’ in the WP and site addresses.
Forum: Fixing WordPress
In reply to: Rest endpoints, user logged inNever mind. I was doing something so incredibly stupid I’d rather not talk about it.
Sorry for the noise, thanks for your help, problem solved.
Forum: Fixing WordPress
In reply to: Rest endpoints, user logged inHmm .. maybe not. I have the nonce passed over, it appears in the headers in the endpoint but still I have no logged in users. Any other thoughts?
thanks.
Forum: Fixing WordPress
In reply to: Rest endpoints, user logged inThat’s why. Perfect, many thanks.
Forum: Fixing WordPress
In reply to: Rest API, concurrent connectionsthanks. I thought not but stones, unturned and all that.
That would be great. Thanks for your time.
thanks. Can I request that you open source this if you are going to distance yourself from it. It’s a useful tool and I’d hate to see it fall off the edge of the table. Github would be nice.
Yes, I understand how this works. But I’m doing the update remotely using your xmlrpc calls which have no support for removing these cached images. If the master image is removed or replaced their should be a method in your xmlrpc calls to remove or update the cache file associated with it. The idea that cached versions of any file should be left dangling when the master is changed is, frankly, a bit odd.