skyman77
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to block external CSSOK, thanks for that, I’ll check out the resources you’ve pointed out.
Have a great day!
Forum: Fixing WordPress
In reply to: How to block external CSSThere’s a few reasons.
When I started building my website a year ago, I was traumatised by my web host’s website builder lol. So I thought I’d cut out the middle man and learn HTML (I understood a bit from years ago). I had to cut that webhost loose and in the process of looking for another one, I found that they all have their own website builders (shudder) and WP which I had a bit of familiarity with from years ago when I tried my hand at some blogging.
I actually work in IT support (20+ years) but am looking to transition into WebDev, so I think it’s useful to be across WP due to it’s popularity. If I wasn’t going to use WP, what would I use in terms of public web serving?By the way, as an IT support engineer, we do pretty much everything except webhosting/development, so my knowledge is minimal in that area.
Forum: Fixing WordPress
In reply to: How to block external CSSThanks again for replying.
So here’s the full story. With WP, I’m writing my own HTML/CSS and just using custom HTML blocks in the builder. When I started out using WP a few months ago, realising I couldn’t find styles.css files and that CSS works differently in WP, I asked where do I put my CSS? I was told, add it to the additional CSS section in the Styles area. No problem.
I’m publishing a website publicly with my Webhost but use WP on my home PC for testing/backup/dev etc. Apart from my main website content, I run some unique unrelated pages that I want to be able to ‘isolate’ from whatever CSS WP is injecting from the additional CSS section. So my main questions/objectives are the following.
– What is the best/right way to lodge your ‘main’ CSS in WP?
– If I want to block that ‘main’ CSS completely so certain pages won’t pick it up, how can I achieve this?
– And do these questions point out that I’m fundamentally missing something 🤣Cheers.
Forum: Fixing WordPress
In reply to: How to block external CSSOK, I found the code that was breaking the unique webpage, so that’s progress. Id’ still like to be able to be able to get this deregister technique to work, and there’s still another oddity and cross styling issues in the way my webpage is displaying which also needs further investigation.
Forum: Fixing WordPress
In reply to: How to block external CSSHi,
Thanks for the quick response. I tried the instructions in the suggested technique. It doesn’t appear to have any effect. Here is my code:
add_action( ‘wp_enqueue_scripts’, ‘twentytwentyfive_child_deregister_styles’, 11 );
function twentytwentyfive_child_deregister_styles() {
wp_dequeue_style( ‘twentytwentyfive’ );
}Can I confirm that the CSS added in the Additional CSS section is the theme’s CSS? Another thing I don’t understand is why WP doesn’t put that CSS somewhere in a file where it can be edited in the usual way. I did a text search for unique strings from my CSS in the whole WP directory and it finds nothing.
Forum: Fixing WordPress
In reply to: utf-8 symbols don’t show in an anchor (a) tagOK, I worked it out. The UTF-8 codes should be ending with semicolon like this: •
For some reason I don’t understand, they are working without it in my html viewer. The missing semicolon didn’t become a problem until I uploaded the code to WordPress for the first time.
Forum: Fixing WordPress
In reply to: Using a custom CSS file for 2 or more web pages.Hi,
Great, both of those alternatives worked. I’m unfamiliar with php so didn’t know the coding for adding multiple pages in the one statement.
Cheers .