andynewby
Forum Replies Created
-
Forum: Plugins
In reply to: [MaxGalleria] Trying to "clean" up the CSS filesThanks again. Having it in the functions.php would be good – but still doesn’t seem to want to play ball:
function deregister_styles() { // remove stuff first... global $wp_scripts; foreach( $wp_scripts->queue as $handle ) : echo $handle . ' | '; endforeach; //echo "HERE TEST"; wp_deregister_style( 'login-with-ajax' ); wp_deregister_style( 'contact_form_maker_frontend' ); wp_deregister_style( 'fontawesome' ); wp_deregister_style( 'genericons' ); wp_deregister_style( 'jetpack_css' ); wp_dequeue_style( 'jetpack_css' ); wp_dequeue_style( 'maxgalleria-image-tiles' ); wp_dequeue_style( 'maxgalleria-image-tiles-skin-standard-css' ); //echo "running reducerx \n"; wp_deregister_script( 'googlemap' ); wp_deregister_script( 'rwmb-map' ); wp_deregister_script( 'gmap_form_api' ); wp_deregister_script( 'gmap_form' ); wp_enqueue_style( "common-css", '/wp-content/common.min.css' ); }
Simply shows just one in the queue, at the time that function runs:
login-with-ajax | HERE TEST <!DOCTYPE html>
ARGH! Maybe I need to just call it a day, and have a look with a fresh mind.
Thanks again (and for any other suggestions you may have :))
Andy
Forum: Hacks
In reply to: Best way to remove plugins CSS/JS files?Thanks for the reply Dion. I’ve tried that, but still seems to run BEFORE the other stuff has been registered (so obviously it can’t remove, if its not added yet). In the gallery plugin (one of the places I’m having the issue), we have this to set up the css:
// The main styles for this template $main_stylesheet = apply_filters(MAXGALLERIA_FILTER_IMAGE_TILES_MAIN_STYLESHEET, MAXGALLERIA_PLUGIN_URL . '/addons/templates/image-tiles/image-tiles.css'); wp_enqueue_style('maxgalleria-image-tiles', $main_stylesheet);
Now, I added an “echo” alongside that (so I can see when its being added in the process tree), and then in my code I also added:
echo "foo test";
..so I can see where my code runs. For mine, it runs at the very start of the page (before any rendering). For the gallery, it seems to add it just before the post is shown:
<section class="entry-content clearfix" itemprop="articleBody"> running tiles running tiles running tiles running tiles running tiles running tiles running tiles running tiles <p>I’m always in awe
I’m at a loss as to what I’m doing wrong ??
TIA
Andy
Forum: Plugins
In reply to: [MaxGalleria] Trying to "clean" up the CSS filesThanks. I’m quite surprised this is so hard :/ I see what you mean. I added some echo’s into the code, and mine does seem to run before the gallery stuff. However, it only runs with:
add_action( 'wp_enqueue_scripts', array($this, 'deregister_styles'), 99999 );
From what I read on the document, I can’t see anything about $this being passed along in an array? I would have thought this would work:
add_action( 'wp_enqueue_scripts', 'deregister_styles', 99999 );
But in that case, it doesn’t run at all – eugh
Forum: Plugins
In reply to: [MaxGalleria] Trying to "clean" up the CSS filesThanks for the reply. Any ideas on how to do that? I’m a bit of a newbie (no pun intended with my name ;)) to the whole WP programming side of things. I come from a Perl background.
From what I read, the 99999 should be telling that function to run at the end?
add_action( 'wp_enqueue_scripts', array($this, 'deregister_styles'), 99999 );
TIA
Andy
Forum: Plugins
In reply to: [Nobs ? Share Buttons] buttons-for-website.comHi,
Is this valid for the plugin?
.*?free-social-buttons.com .*?Get-Free-Traffic-Now.com .*?free-social-buttons.com .*?darodar.com
I keep getting crap like this getting through:
www1.free-social-buttons.com
…when using just:
free-social-buttons.com
so I’m wondering if I need to use some wildcards? Its a bit weird though, as the line is:
$line = '/'.$line.'/';
…so I would have thought free-social-buttons.com would work fine?
TIA
Andy
Forum: Plugins
In reply to: [WDContactFormBuilder] Bug with emails, and confirmation oneHi,
Ahhhh ok – I was not aware thats how it worked. I just assumed it was a standard tag ?? I’ll give that a go, and I’m sure it’ll work fine
Thanks for your time!
Andy
Forum: Plugins
In reply to: [WDContactFormBuilder] Bug with emails, and confirmation oneThanks. You can see it here: https://steampunk-reviews.com/index.php/contact-page/
TIA
Forum: Fixing WordPress
In reply to: Admin panel CSS all gone?Hi
Thanks – yeah it was just one I knocked up using this basic set, and then wrapped my own design in it:
https://www.blogseye.com/convert-a-web-page-to-a-wordpress-theme-in-5-minutes/ (I did this a good 2-3 years ago btw, thus the lack of responsive design… I shudder looking at it now, but don’t have time to redo it)
TBH, the site doesn’t make me any money, and I don’t really wanna spend any time on it. Maybe I’ll have a look on fiverr.com to see if I can find someone to troubleshoot it. Bit annoyed really, as I only upgraded it to get security fixes – didn’t realise it was gonna cause all this grief ??
Thanks for your help though.
Andy
Forum: Fixing WordPress
In reply to: Admin panel CSS all gone?Mmm ok well that fixes the admin panel, but then its obviously got the wrong design for the main site. As soon as I change it back to my custom theme, it them breaks the sidebar styling (its a white background, and any pop-out menus have no backgrounds, so you can’t read them properly).
Surely my custom design won’t affect that, as its not even related to the admin ones?
Forum: Fixing WordPress
In reply to: Admin panel CSS all gone?Hi,
I have not customized the admin styles what-so-ever. All that I changed, is the theme for the visitor bit (i.e what my users see). The admin I have never touched (or would even know where to look! hehe) … so I’m at a bit of a loss as to why it would suddenly break (I’ve done tons of upgrades the exact same way before, which is what makes it even weirder)
TIA
Andy
Forum: Fixing WordPress
In reply to: Admin panel CSS all gone?BTW, I have tried clearing out the W3 Total Cache “cache”, as well as the cache on my browser – but still no joy
Forum: Fixing WordPress
In reply to: Admin panel CSS all gone?Hi,
Thanks for the reply.
the image link is of a BB Press plugin.
Nope, not BB Press – just a plain old WP install, with a custom theme I made (only the frontend)
The site itself is fine:
https://www.mywebsitedesignersblog.com/
…only the admin-cp that seems to be broken ??
TIA
Andy
Forum: Fixing WordPress
In reply to: Hack attempt, or just spammer?Thanks – will check those out ??
Forum: Fixing WordPress
In reply to: RSS feeds?Hi,
For anyone interested – this .htacces code works perfectly ??
RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L]
Cheers
Andy
Forum: Fixing WordPress
In reply to: RSS feeds?Hi,
Thanks for the reply.
I had a look around, but couldn’t see how I setup the permalinks? Obvioulsy it goes in a .htaccess file (in the root of the blog folder) – but just not sure what actually goes in it?
TIA!
Andy