I want to put a link in the description text of a category but I can't find where/how to change the css for the right colour. I thought I had found the right section but it altered the colour of the sidemenu links as well. Can you point me in the right direction please? I'm using standard OpenCart theme and using Version 3.0.2.0
Well you just need to understand a tiny bit of CSS for this to work.
First affect stuff in the div with an ID of "content":
#content
And then affect links:
a
So your selector would look like:
#content a {
color: #yourcolour;
}
First affect stuff in the div with an ID of "content":
#content
And then affect links:
a
So your selector would look like:
#content a {
color: #yourcolour;
}
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Well, that's no use - it changes ALL the links such as Product links, search links, Compare etc. I don't what that. I want to isolate a link to a pdf file just from the category description. I isolated the code for the manufacturer section:
/* links for manufacturer pages */
#manufacturer-details a {
color: red;
}
I want to do a similar thing for the category description.
/* links for manufacturer pages */
#manufacturer-details a {
color: red;
}
I want to do a similar thing for the category description.
Follow these two steps :
Step 1 : Navigate to catalog/view/theme/default/template/product/category.twig
Search for : <div class="col-sm-10">{{ description }}</div>
Replace with : <div class="col-sm-10" id="cat_desc">{{ description }}</div>
Step 2 : Navigate to catalog/view/theme/default/stylesheet/stylesheet.css
Add : #cat_desc a{
color: YOUR-COLOR;
}
Step 1 : Navigate to catalog/view/theme/default/template/product/category.twig
Search for : <div class="col-sm-10">{{ description }}</div>
Replace with : <div class="col-sm-10" id="cat_desc">{{ description }}</div>
Step 2 : Navigate to catalog/view/theme/default/stylesheet/stylesheet.css
Add : #cat_desc a{
color: YOUR-COLOR;
}
Opencart Expert | sales[at]ost.agency
Skype - manish.osuniverse | Gtalk - manishmt
Extensions for Opencart @ https://www.ost.agency/product/product- ... extensions
ost.agency - ecommerce website design, development and digital company
Who is online
Users browsing this forum: daniil_oc, drag84, WaxedPerfection and 472 guests