By Guest on Friday, 08 September 2017
Replies 7
Likes 0
Views 1.5K
Votes 0
I would like to hide some of the columns in the modal on locations (see screenshot). I have added the following into the jevents custom css which works but it also removes them from the administrator back end meaning we can't manage the back end as the titles disappear.

Here's the code I was using.
.jevlocations thead th:nth-child(1), .jevlocations tbody td:nth-child(1), .jevlocations thead th:nth-child(3), .jevlocations tbody td:nth-child(3), .jevlocations thead th:nth-child(5), .jevlocations tbody td:nth-child(5) {
display:none!important;
}

I tried adding it to my template custom css instead but it has no effect there,
Hello,

For longterm use you would be better creating a template override. if you provide super user logins in the Site Details Tab we can take a look for you.

Many thanks
Tony
·
Saturday, 09 September 2017 07:27
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks
·
Monday, 11 September 2017 09:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

It would appear your template is not loading the custom.css file into the print window. Can you follow up with Yootheme why this template isn't loading any custom CSS files into the tmpl=component view?

Many thanks
Tony
·
Tuesday, 12 September 2017 22:29
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Tony

Getting a reply from Yootheme is like getting blood out of a stone.
I've tralled their forum (also pretty useless) finding the issue goes back to at least 2012. I've managed to find one with an answer which states the following:


You should be able to do so by modifying the file /templates/yoo_template/component.php

In that file you'll see lines starting with $doc->addStyleSheet, typically loading Bootstrap CSS. Right below add a new line, basically identical but pointing to the CSS file you want to be loaded as well. Save, then test.

Note that this file will be overwritten and your modification being lost once you update the template!


Does this help?
·
Tuesday, 12 September 2017 22:47
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

Yep that's fine. I've added it in for you now, so your component file loads in: /yoo_finch/css/custom.css

Many thanks
Tony
·
Tuesday, 12 September 2017 22:59
·
0 Likes
·
0 Votes
·
0 Comments
·
HI Tony

My css override file is yoo_finch/styles/inn/css/custom.css
Should it point to this one?

Also, are you saying I should use my css override now rather than the template overide you mentioned?

Thanks again
·
Tuesday, 12 September 2017 23:06
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

You can use either CSS files it's up to you :-).

You can do the template override, but I had read the post slightly wrong and you were just wanting to hide it on the frontend so this way is fine.

Many thanks
Tony
·
Wednesday, 13 September 2017 10:16
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post