Below is an example similar to the standard PHP if echo: {if $config.current_url == "index.php?dispatch=_no_page" } {else} <meta property="og:url" content="{$config.current_url|fn_url}" /> {/if}
Read More »CS-Cart
How to remove the link from the logo for the main page in CS Cart
By default, all pages in the site header have a link from the logo to the home page. According to some SEO audits, it is recommended to remove the particular link to the home page from the logo. In CS Cart, the logo file is placed in /design/themes/template/templates/blocks/static_templates/logo.tpl To solve …
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 »