Description of the problem – if you add a standard redirect from index.php to the root of the site, this rule will by default apply to the site admins. For Joomla and Вitrix, the result will be the inability to log in to the admin panel, because the index will …
Read More »Drupal
Correct transfer Drupal site from http to https
The certificate was purchased and activated, the site with https does not open correctly. The way to solve this problem: 1. In the file sites/default/settings.php find the line with $base_url. Under this line add: $conf['https'] = TRUE; $base_url = 'https://old.domain.com'; Replace the domain name with the actual one, and do …
Read More »How to remove generator in Drupal 7
By default, the source code of Drupal sites contains the line <meta name=”generator” content=”Drupal 7 (http://drupal.org)” /> To remove it, you need to edit the file /sites/all/themes/mytheme/template.php (instead of mytheme, go to your site’s theme folder), find function shop_adaptive_html_head_alter and add before the closing character } this line: unset($head_elements['metatag_generator_0']); If …
Read More »Display: inline-block does not stretch to width, but sticks to the left In Safari
The problem is described in the title of this article. If elements that in normal browsers stretch across the width of the stage with active display: inline-block; in Safari ignore the width and stick together on the left, then for the parent to which this inline-block was assigned, try to …
Read More »Popup image on click without href
A very elegant solution, with which the image will not be wrapped in <a href=””></a>, image will float on click to the center of the screen and will be able to close both on the top cross and on a click on a translucent background. Image code: <div class="image__wrapper"> <img …
Read More »How to change the width for Vk and Facebook widgets from pixels to percentages
Very often I need to replace a narrow widget, which for some reason is assigned to VKontakte with a fixed width of 300px, with a percentage, for example 100% – in order to be displayed on the entire width of the side column. The solution is simple, make changes to …
Read More »How to place a favicon on a website
If you’re using a site with a CMS, you probably already have a default favicon that you’ll want to change. To do this, you need to search for the favicon.ico line in the source code, and you will see in which folder the current favicon is loaded. The easiest method …
Read More »