Jump to content


This topic is now archived and is closed to further replies.


Simple CSS Question

Recommended Posts

jacecar+    1

I am having a simple problem that has perplexed me for several hours.  I am running DMS with the Viewer child theme on my personal/testing website, www.jacecar.com.  It's very much under construction, so don't scream too loudly if you visit.  Also, keep in mind that I'm color blind/deficient, so normal/healthy color combinations don't occur to me.  Before I deliver anything to a customer, I make sure my wife and others assist me with color choices, image selection, and so forth.  The problem I am having here is not related to color blindness.  I can tell a light color from a dark one.


I am attempting to create a site with a fixed image background (mainly dark) with light text, highlight, hover, link, etc. attributes.  In the DMS configuration section, I am able to go into settings and set the base background color, foreground color, and link color.  Anything beyond that has to be done in CSS, but my lack of familiarity with the new DMS framework (no pun intended) is slowing me down.


For some strange reason, the Viewer child theme, even with a dark background and light foreground/main text color, leaves the h1,h2,h3, etc. styles defined as #939393 with the following snippet buried somewhere in the code:


h1, h2, h3, h4, h5
    font-weight: normal;
    color: #939393;


I've tried to put an override CSS in various places, but nothing will overwrite these styles.  This should be easy and straightforward, but it's not working.  I have done everything I can think of, including resetting the themes, reloading all the modules, and putting the following CSS in about 10 different places with no result:


h1, h2, h3, h4, h5{
    font-weight: normal;
    color: #FFFFFF;
I am not using caching, and I have manipulated enough other source and module files to know if I was getting an error caused by an un-flushed cache.  There is always the possibility that I have a conflict with one of my modules or widgets, but I don't think so.  This is fairly straightforward.
I hope someone can show me how easy this is to fix.  I would really hate to have to do something drastic to fix a color display issue.




Share this post

Link to post
Share on other sites
Danny    1,327



The reason is that, this is a child theme and therefore, has it own custom styling. In order to change these colors, you will need to use your own CSS/LESS, you can do this by adding your custom CSS to the DMS Toolbar > Custom > Custom CSS/LESS or use the Customize Plugin.


I added the following code to the Custom CSS/LESS editor and it worked like a charm.



body { color: pink; }

I also was able to override the header tags using the following code:


h1, h2, h3, h4, h5 { color: green; }



Please search our forums, before posting!

Share this post

Link to post
Share on other sites

  • Similar Content

    • JawDesigns
      By JawDesigns
      Hi everyone,
      Flywheel have reported errors on my clients site 'www.racewaredirect.co.uk' and it's not loading. Can someone please provide some information on how to fix this? The site has never experienced these issues before.
      James Wilson
    • MissT
      By MissT+
      Hi there,
      I've got an issue with 3 websites built with DMS since I migrated them from http to https that I need help with please.
      When any changes are made - e.g. new posts added or existing posts amended - certain sections of the live site seem to break e.g. image headers hang and don't load (b/g on canvas section), sliders hang and don't load (Revslider), flipper section doesn't load.
      Logging in and then clicking 'Edit the site using DMS' seems to fix the problem. Often if I try to open up another browser window to edit the site / re publish I'm unable to as the page wont load / hangs while trying to load.
      Any ideas how to fix this? On a couple of the sites I've installed a caching plugin as I thought it might be a loading speed issue but it's still happening.
      Website URL's can be provided privately.
      Many thanks in advance.
    • flourishdesignstudio
      By flourishdesignstudio
      I am working on a multisite installation and had some questions regarding the themeing options. All the sites will have the same structure but each individual site would need a different h1 font and link color. I had originally thought that I would program/edit the parent theme to have a certain set of templates, font sizes, etc. and then that would feed to all the individual sites where I could activate the child theme and use the child theme to define the individual sites' specific link color, heading fonts, etc. So, what I was shooting for was:
      Parent theme = shared by all sites
      Child theme = specific to the minor customizations on a per site basis.
      Is this possible? Am I misunderstanding how these would actually deploy to the different sites?
    • Barnaby Skinner
      By Barnaby Skinner+
      Hey all, hope I worded the topic correctly!
      I just need to know if either 1) I'm making a mistake or 2) this could be set as a new feature?
      Using the global settings typography parameters, I have a global paragraph font type (set using googlefonts) and have set the style to align:justify. When laying out <p> text inside a simple TEXT module, the <p> text adheres to both the font type and justification. Perfect.
      Now, when I set <p> text inside the PARAGRAPH TEXT field within an ELEMENT module, the <p> text adheres to the font type, but not the justification. It's rather annoying as I like to fully justify para text across the board and tend to use Element modules instead of text boxes for various reasons. It also seems silly that some PARAGRAPH TEXT fields adopt global settings, whilst other don't.
      Or I'm doing it wrong :S
      Any help or advice is much appreciated!
    • jeomiland
      By jeomiland+
      I found this topic
      which talks about a similar issue I am having, but a little different. Hope someone can help me out.
      Best way to see the problem is to view http://cassclayton.com/ on Safari (Mac) compared to Firefox or Chrome. You will see the banner just under the fixed menubar has a gap between the menubar and top of the banner. Looking at Inspector, I found:
      <div class="fixed-top-pusher" style="height: 62px;"></div>
      <script> jQuery('.fixed-top-pusher').height( jQuery('.pl-fixed-top').height() ) </script>
      and indeed it seems the jquery is not always working consistently. For instance, if you simply refresh the page in Safari, it will loose the gap and all looks fine, so is it a browser cache issue that is interacting with the jquery? I do have W3 Total Cache installed. There must be a way to tell the code to make sure jquery is up and running and available to do it's majic?
      And perhaps there is just a better way to do this banner? Originally I tried several DMS sections and used the banner image as background, etc... Kept running into problems with resizing and the left/right parts of the image were getting chopped off. It is important the whole image show, so currently I just use a NextBox section with this code:
      <img src="[pl_site_url]/wp-content/uploads/2015/12/CassClayton-blues-tribute-banner.jpg" width="100%" />
      and it looks the way it should. Is there a better way to place a banner graphic under a fixed navbar and make sure the whole banner graphic displays regardless of screensize?