Jump to content
Sign in to follow this  

Где поставить код?

Recommended Posts

Добрый день, есть необходимость сделать бекграунд картинкой, но нужно задать условие чтобы фон(картинка) не двигался вместе с основным шаблоном и его  можно было немного сдвинуть влево.

Нашел файл в котором осуществляется данная правка 0:/www/on-timewatch.ru/catalog/view/theme/sstore/template/common/header.tpl
Кусок кода:

body {
<?php if($storeset_backgr_color !='') { ?>

background-color: <?php echo $storeset_backgr_color; ?>;

<?php } 

if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') $path_image = $config_url;

else $path_image = $config_url;
if($storeset_custom_pattern !='') { ?>

background-image: url("/image/<?php echo $storeset_custom_pattern ?>") ;
} else { ?>

background-image: none;

<?php } ?>

Куда вставлять код: background-attachment: fixed;  ???

Share this post

Link to post
Share on other sites

Например, сюда catalog/view/theme/sstore/style/style.css

body {
    background-attachment: fixed; <-- код
    height: 100%;
    left: 0;
    position: relative;
    transition: left 0.4s ease-in-out 0s;
    width: 100%;


Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.


Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.