Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Как связать объект в шаблоне с новым стилем CSS


Recommended Posts

Приветствую всех!

Я новичок, сижу разбираюсь, никак не вкурю как связать новый объект в шаблоне с новым стилем в stylesheet.css.

Например вот, из стандратного модуля viewed.tpl.

Изменил кнопку купить на ссылку и добавил новый объект (неважно что там сейчас нет ссылки):

 <div class="cart">
        <input type="button" value="<?php echo $text_info; ?>" onclick="top.location.href=('<?php echo $product['href']; ?>');" class="button" />
        <a class="new_object">новый объект</a>
        </div>

 

Теперь я хочу в stylesheet.css прописать для new_object новый стиль, но что бы я не делал, стиль надписи не меняется.

Т.е. не могу понять как связать блок описания стиля с классом new_object.

Возможно что то неправильно пишу или нужно добавить дополнительные свойства кроме class в шаблоне.

P.S. шаблон ocshop, версия 1.5.6.

 

Подскажите пожалуйста.

Edited by slesar23
Link to comment
Share on other sites


9 hours ago, nexus said:

Ну или:

.cart a{

   color: red;

}

После не забудьте сбросить кэш. ctrl+f5

 

 AWAROnexusспасибо, видимо ранее не работало из-за opera>история>очистить кэш и куки.

Через ctrl+F5 все пошло.

Edited by slesar23
Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

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.