Friday , December 20 2024

HTML, CSS

HTML, CSS – articles, how-to-fix notes, fast solutions

How to disable click on links using CSS?

Easy question, easy solution. We can disable click on all links, or we can use id or class for the particular links that should be unlickable and use: pointer-events: none; I use it for the case when I need to disable clicks on the images to avoid popup windows on …

Read More »

How to open html pages without .html

If your site uses links like http://domain.com/testpage.html and http://domain.com/demo.html, and you want them to open like http://domain.com/testpage and http://domain.com/demo, you can use this solution. Go through FTP or a File Manager to the folder with the site files. Open file .htaccess and add the following code: RewriteEngine on RewriteBase / …

Read More »

Css styles for WordPress admin in functions.php

If you need to add individual styles, and they are only a couple of lines, you can add them directly to functions.php: add_action('admin_head', 'webinp_style'); function webinp_style() { print '<style> tr[data-slug="to-top"] {display: none !important;} </style>'; } Between <style> and <style> you need to write your own CSS styles.

Read More »

Fa fa Telegram icon not showing

Usually, after making edits according to the instruction “Fa fa icon is not displayed”, all icons are displayed correctly. But not telegram, which is not mentioned at all in the included CSS from font-awesome. So open up your CSS and add this one: .fa-telegram:before {content: "\f2c6"; }

Read More »

How to add custom CSS for WordPress admin panel

If you need to place a few CSS lines for the admin panel, then edit the file functions.php at the root of the theme, and add it to the end of the file: add_action('admin_head', 'admin_styles'); function admin_styles() { echo '<style> .update-nag {display: none !important;} </style>'; } Instead of the .update-nag …

Read More »