Friday , December 20 2024

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 »

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 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 »

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 »