Tagged: x
-
AuthorPosts
-
November 14, 2016 at 6:11 am #1256271
RehngruppenParticipantHello! I’m currently creating a custom skin for “The grid” and I cannot get the terms/catoegories text to have each categories color, even though i have the option ticked in. It does work with the built in skins so i know i have set up the categories right, but for som reason when i build my own skin the just becom grey. I’ve been looking into the css and com to the conclusion that it’s because of a css rule that applies an “inherit !important” to the color of all “tg-element-” why is this happening?
November 14, 2016 at 7:06 am #1256329
ChristianModeratorHey there,
Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:
– Link to your site
– WordPress Admin username / passwordDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
Thanks.
November 14, 2016 at 7:15 am #1256341
RehngruppenParticipantThis reply has been marked as private.November 14, 2016 at 8:08 am #1256402
ChristianModeratorThe Grid uses a color scheme system to automatically apply colors for the overlay background, content background and text colors.
The skin builder will preserve this color scheme system which can be setup for each grid and in the global settings.
However, if you want to override a color inside a skin, you can add an important rule thanks to the exclamation point icon (!).
See attachment.
November 14, 2016 at 8:24 am #1256416
RehngruppenParticipantYes but i want the tags to display thier own color, wich i have set in the categories.
If i choose a built-in skin to my grid, say Kampala, the tags display thier own color. But if i build my own, this css rule applies all of a sudden wich i cannot disable..November 14, 2016 at 8:27 am #1256430
RehngruppenParticipantBasically, i just want that !important tag off the so that each element can use its own element.Style attribute. Is there a way to do that?
November 14, 2016 at 9:25 am #1256505
ChristianModeratorEven removing that !important rule, that will not work still because it’s still part of the
tg-elementwhich is causes the issue. This is most probably a bug in The Grid so I’ve added this custom script to your grid to make it work.jQuery(".tg-cats-holder").removeClass (function (index, css) { return (css.match (/\btg-element-\S+/g) || []).join(' '); });Hope that helps. 🙂
November 14, 2016 at 9:49 am #1256550
RehngruppenParticipantOk, I have the script in place but it doesn’t work anyway.
November 15, 2016 at 12:17 am #1257527
Paul RModeratorHi,
It seems to be working fine on my end.
http://screencast.com/t/3Oyq0kogF
Please clear your browser cache and check again.
Thanks
November 15, 2016 at 2:58 am #1257633
RehngruppenParticipantThat is not a custom skin but the built in skin “Maren” that i then apply custom css to remove stuff that i dont want, But i really want to create a custom one. Until this issue is resolved i have to do this hack, but i want it to work with a custom skin first.
November 15, 2016 at 6:23 am #1257807
ChristianModeratorI replaced the code with
jQuery('.tg-cats-holder').attr('class', function(i, c) { return c.replace(/(^|\s)tg-element-\S+/g, ''); });and placed it in Appearance > Customize > Custom > Global Javascript
Check the attachment to see that it works.
It even works in your NewsGridTest grid. To be available in preview, you need to add the script in the Grids CSS/JS.
If this still doesn’t work on your end, please hire a web developer to investigate what makes this code not to work on your end as I’ve already tested this several times and it works on my end.
This is a bug in the Grid plugin and it could not be addressed immediately. Please stay tuned for updates.
Thanks.
November 15, 2016 at 9:46 am #1258085
RehngruppenParticipantOk, is there some way to be notified when this bug is fixed?
November 15, 2016 at 11:08 am #1258185
RahulModeratorHey There,
You can follow our ChangeLog section where you will be updated with latest changes made to the Theme and the associated plugins :
Thanks!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1256271 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
