Busting Browser Cache when updating stylesheet of WordPress website

If you are editing the child theme CSS then this line has nothing to do with that: wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’, [], THEME_VERSION, ‘all’); get_template_directory_uri always refers to the parent theme, get_stylesheet_directory_uri always refers to the active theme, in this case the child theme. Likewise these lines refer to the currently active theme, aka …

Read more

How to remove automatically added custom style tag?

In my case the style tag was added by the flying font plugin. I have modified the file ‘wp-content/plugins/flying-fonts/flying-fonts.php’ ……………. $style = “<style>body{font-family:-apple-system,system-ui,BlinkMacSystemFont,’Segoe UI’,Roboto,Oxygen,Ubuntu,Cantarell,’Fira Sans’,’Droid Sans’,’Helvetica Neue’,sans-serif !important}code{font-family:Menlo,Consolas,Monaco,Liberation Mono,Lucida Console,monospace !important}</style>”; $style=””; // set the style as ” $html = str_replace(‘</head>’, $style . ‘</head>’, $html); ……… And i have added the style manually in non …

Read more

Editing size of h3 tag in wordpress on a one-off basis

If you’d like to use <h3> tags that are the same size as your <h4> tags only on one page, add a specific class to each of the <h3> tags you’d like that size. In the Classic Editor, you should have a “Text” tab where you can input custom HTML. In there, type your <h3> …

Read more

Disabling double vertical scrollbar and horizontal scrolling?

Ok I’ve managed to find a solution to this 😊 It was to remove all previous overflow elements and replace it with this: @media (max-width:480px) {#page {overflow-x:hidden}} I now have no double vertical scrollbars and no horizontal scrolling on mobile devices – result! Hopefully leaving this post here will help someone else some day 😊 …

Read more