I tried solutions with functions that should remove from head and , but a very simple solution solved the problem: remove_action( 'wp_head', 'wp_resource_hints', 2 ); You need to place it in functions.php.
Read More »Webmaster notes
301 redirect – remove slashes after domain name
If you need to make ‘https://domain.com/////////////’ links like this ‘https://domain.com/’, you can copy the following solution to .htaccess. In this case, the redirect will be instant (not multistep). RewriteEngine on RewriteBase / RewriteCond %{HTTP_HOST} !="" RewriteCond %{THE_REQUEST} ^[A-Z]+\s//+(.*)\sHTTP/[0-9.]+$ [OR] RewriteCond %{THE_REQUEST} ^[A-Z]+\s(.*/)/+\sHTTP/[0-9.]+$ RewriteRule .* https://%{HTTP_HOST}/%1 [R=301,L] RewriteCond %{REQUEST_URI} ^(.*)//(.*)$ RewriteRule …
Read More »301 redirect in .htaccess from uppercase to lowercase characters
In web development, managing URL consistency is crucial for SEO and user experience. One common task is redirecting URLs with uppercase characters to their lowercase counterparts. This article provides a working example for redirecting URLs like http://domain.com/sUcH_liNKs to their lowercase versions using .htaccess. While the solution is large and not …
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 display page title anywhere in Joomla template
This solution was tested on joomla 3, here is the code to use: <h1 itemprop="name"> <?php echo $this->escape($this->item->title); ?> </h1>
Read More »How to remove the redirect to the main domain for its aliases in WordPress
For multisites, the case of creating site mirrors that open the contents of the main site is relevant. By default, all mirrors are redirected to the main domain. To disable it, you need to add two lines at the end of the wp-config.php file: define('WP_SITEURL', 'https://' . $_SERVER['HTTP_HOST']); define('WP_HOME', 'https://' …
Read More »How to add a short product description in a WordPress category
If you need to add a description of a product in the list of products in a category, you can use this solution: In the file /wp-content/plugins/woocommerce/templates/content-product.php find the line do_action( ‘woocommerce_shop_loop_item_title’ ); and under this line add the following code: ?> <div itemprop="description" class="introdesc"> <?php echo apply_filters( 'woocommerce_short_description', $post->post_excerpt …
Read More »Open expanded block by link in accorderon/spoiler/toggle
The case can be like this – for example, from the main page you need to place links to an internal page where a list of questions and answers is placed. On the inner page, the link should expand the answer to a specific question. The solution is here: HTML …
Read More »How to display a product property in Bitrix only for a specific user group
By default, the properties are displayed, for example, in this file /bitrix/templates/template/components/bitrix/news.detail/catalog/template.php like this: <?if($arResult["PROPERTIES"]["test123"]["VALUE"]):?> <div class="project-top__parameter-item"> <div class="project-top__parameter-name"> <?=$arResult["PROPERTIES"]["test123"]["NAME"]?> </div> <div class="project-top__parameter-line"></div> <div class="project-top__parameter-size"> <?=$arResult["PROPERTIES"]["test123"]["VALUE"]?> </div> </div> <?endif;?> where test123 is a product property. If you need to hide this property for all groups, for example, except for Admins …
Read More »Joomla 1.5 admin panel in Virtuemart does not open sections and icons are not loaded
Today I got this problem on an old project where the entire admin panel worked correctly, but for Virtuemart all links looked like http://domain.ruadministrator/index.php?pshop_mode=admin&page=product.product_list&option=com_virtuemart. There should be a slash after the domain, but there is no slash, and therefore all Virtuemart sections in the admin panel do not work. An …
Read More »