Jump to content

Archived

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

PeterStephens

CSS changes in DMS widget areas; sidebar plugin interface with DMS

Recommended Posts

PeterStephens

What tags should I use to effect changes to font types and sizes to any DMS widget area? .sidebar doesn't seem to work in the CSS space. Also, when I create a sidebar in the sidebar plugin the theme suggested, it doesn't have any mechanism for assigning a category to it as it suggests it is able to do. Therefore, none of the sidebars I create using the plugin show up in the markup area.

 

Thanks  so much for your help!

 

Peter

 

Share this post


Link to post
Share on other sites
batman

Hi Peter

If I understand about de DMS widget area

Please, you can try add in your Custom Code for example:

 

.widget ul {
    font-size: 14px;
    font-family: sans-serif;
    font-style: oblique;
}
 
I need clean me cache to see the change or relaunch de web.
You see the image
 

My exemplary code is not necessarily applicable as written, to your site, so please adjust accordingly.


Life is too short to remove USB safely ...

Share this post


Link to post
Share on other sites
PeterStephens

Thanks, Bat Learning! I'll give it a try.

 

Any thoughts on how the widget plugin DMS suggests (Custom Sidebars) can be assigned posts with particular categories in DMS, as it claims to do? 

Share this post


Link to post
Share on other sites
Rob

Peter, the Visual Editor (accessible by going to your site in Chrome, lets you select a section to edit.  When you do, likely you'll see a field called "Custom Class" or something like that.  In the Custom Class field, you can add a custom class.  This will then be applied specifically to that section only.  You then create your CSS to match.  You can also add a custom class directly into text widgets.

 

In the custom class field, you might add my-red-text or in the text widget, you might try <div class="my-red-text"> your text </div>

 

Then, in Custom Code you'd add something like

.my-red-text {color: red;}

 

And on saving, your text will turn red in that section or text widget only. Of course, you can apply custom code to most anything.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
PeterStephens

Thanks, One Smart Egg. Here's what I've done so far at slowreads.com (click any blog post title):

 

WidgetFontStyleIssue01.jpeg

 

I've read a couple of ways of defining the font family on the cs3 school site, so I tried both of these with no luck:

 

.widgetheader {font-family:Calibri,Candara,Segoe,"Segoe UI",Optima,Arial,sans-serif"; font-size 18px;}

 

and

 

.widgetheader {font-family: Calibri, Candara, Segoe, "Segoe UI" ,Optima ,Arial, sans-serif; font-size 18px;}

 

Then, in my text widget, I put this:

 

WidgetFontStyleIssue02.jpeg

 

I've been on this for two hours on the excellent w3schools.com site (I'm a pitifully slow learner), but can't make it go.

 

What I'd really like to do -- the extent of my customizations -- is to learn how to change the fonts on my widgets, both headers and body, particularly the font families and sizes. (I would like to assign widgets to certain blogs automatically by blog category as I was able to do on Genesis, but that's a different subject.)  (I'd love to learn how to get better at CSS, but my 70-plus-hours-per-week job won't permit it.) I really like the simple promise of the DMS interface to customize CSS for particular sections.

Share this post


Link to post
Share on other sites
batman

Hi Peter

Please, you can try with

 

.widget .textwidget {  display: none;}

Life is too short to remove USB safely ...

Share this post


Link to post
Share on other sites
PeterStephens

Bat Learning, thanks. Do you mean that I should use those terms -- .widget and .textwidget -- instead of .widgetheader? I thought in Rob's example above (.my-red-text), it didn't matter what I called it so long as I used the same term in my widget's text field. Is that not so, or do I need particular names in the Styling Classes field (see my photo above)?

 

Thanks again.

 

Peter

Share this post


Link to post
Share on other sites
batman

Hi Peter

I can not see the photo

You can try add my code to your "Custome Code" , in this place (the code you see is another ;))

 

Captura%2520de%2520pantalla%25202013-07-


Life is too short to remove USB safely ...

Share this post


Link to post
Share on other sites
PeterStephens

Thanks, Bat Learning.

 

I was able to fix my sidebar title fonts with this code:

 

.widget .widget-title, .widget .widgettitle {
    font-size: 20px;
    margin-bottom: 0.5em;
    padding: 3px 8px 3px 0;
    text-align: left;
}
But, even using Firebug, I was unable to identify what class is controlling the fonts in my footers. I'd like to turn them to a sans serif and to make the titles bigger than the body. (I've been unable to define any of my own classes using the custom class field. It disappears when I refresh.) I'm using the columnizer section in the footer of slowreads dot com.
 
Thanks . . .

Share this post


Link to post
Share on other sites
batman

Hi

Please you can try with

 

.widget ul {
    font-size: 14px;
    font-family: sans serif;}

Life is too short to remove USB safely ...

Share this post


Link to post
Share on other sites
PeterStephens

Thanks, batman. I tried it this way (see lines 7 through 9 below):

 

FontProblem3.jpeg

 

It didn't change anything in the footer widgets, though, as you see here:

 

FontProblem1.jpeg

 

However, the first five lines of code above did make my sidebar widgets change very nicely:

 

FontProblem2.jpeg

 

I'd love to get my footer widget titles to look like my sidebar widget titles. I have the strange feeling that I'm missing something! :)

 

Thanks,

Peter

Share this post


Link to post
Share on other sites
PeterStephens

By the way, while I've been working on my font issues, I did figure out the interface with the sidebar plugin. How cool. I also think the docs for DMS are extremely well done and helpful. The whole DMS design thing is proving to be a lot of fun.

 

And any help on this CSS font issue would be appreciated. Thanks, everyone.

Share this post


Link to post
Share on other sites
Rob

Okay, lets stop and take a deep breath. 

 

In the place you said you defined your class, you made the mistake of adding your CSS.  Let me be clear, the CSS does not go there. 

 

The purpose of the field is to create a new class.  So you'd put something like mynewclass in there (no spaces, only dash or underscore for punctuation.

 

Then, where it says "Custom Code" in the DMS menubar, you can define the custom class you created. Something like .mynewclass {border: 1px solid red;} You'll see the mynewclass now has a period in front of it, telling the browser this is a class, and then the actual styling is applied (in this example, a red border of 1 pixel, with a solid line). This is why it's important to take the time to read the documentation -- an important, but obviously skipped step.

 

When you add CSS to the class field, you'll see absolutely no change in your site. But, do it enough and you'll get one big effect - crashing your site.  Likely, when someone asks us why that happened, we're going to say something unpleasant.

 

So, take the CSS out of that class field, use it properly, and read the docs.  That's what they're written for -- seriously. http://docs.pagelines.com.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
margeaux7

Hello,

This was a great post but you need to understand that you are a "calculus" instructor speaking to people that have just mastered fractions. Please share with me where in the docs it tells you where to put what. How would I possibly know to take the CSS out of the class field? I don't even know  what that means unless you show me.

 

A simple screen shot would be wonderful. 

 

Surely there is a 1 minute screencast you could do to address this: When you add CSS to the class field, you'll see absolutely no change in your site. But, do it enough and you'll get one big effect - crashing your site.  Likely, when someone asks us why that happened, we're going to say something unpleasant.

 

So, take the CSS out of that class field, use it properly, and read the docs.  That's what they're written for -- seriously. http://docs.pagelines.com.

Share this post


Link to post
Share on other sites
Rob

Margeaux7,  I'm lousy with screencasts. Apologies.

 

However, here's the docs page that will help:  http://docs.pagelines.com/tutorials/section-area-styling

 

You can see how the Styling Class is entered and then used in custom code.  Again, you do not add CSS to the class field. Only the class you want to create.

 

Go to the Styling Classes, add  mybluetext as written and nothing else.

 

Then, in Custom Code, you'd add

.mybluetext {color: blue;}

 

Then, you'll see the text in that section turn blue. Simple as pie.

 

However, if you add the custom code to the Styling Class field, it's incorrect, and DMS doesn't process anything. 


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites

  • Similar Content

    • Michael Kummer
      By Michael Kummer+
      Hi guys!
      I have noticed that my primary sidebar becomes intermittently invisible when browsing through various blog articles on michaelkummer.com/blog.
      See:
      https://www.dropbox.com/s/z646sgoa3mfjl1j/Screenshot 2018-07-12 15.57.46.jpg?dl=0 and https://www.dropbox.com/s/vdledzzgginvwgv/Screenshot 2018-07-12 15.57.57.jpg?dl=0
      Upon refresh, the sidebar appears. I have been using the following CSS code to hide the sidebar on mobile without any issues. 
      @media only screen and (max-width: 993px) {
      /* hide sidebars */
           .plsb {
              display: none !important;
          }
      }
      I tried to add the following CSS to force the sidebar to show on screens that are wider than 994 pixels but to no avail. Any clue what could be causing this issue?
    • Michael Kummer
      By Michael Kummer+
      Hi guys!
      I am using the LESS/CSS Pagelines extension and tried to add the following code to make use of FontAwesome:
      a.c2a:before {
          content: "\f07a\00a0";
          font-family: "Font Awesome 5 Pro";
          Font-weight: 900;
          font-style: normal;
          font-weight: normal;
          text-decoration: inherit;
          padding-left: 4px;
      }
       
      The issue is that as soon as I have the CSS via the Custom Styling text box, Pagelines (or the extension) strips out the backslashes (\). As a result, I had to abandon the CSS/LESS extension and instead add all my CSS code to a separate .css file.
      Is there a fix or workaround for this?
      Thanks
      Michael
    • glyph.marketing
      By glyph.marketing+
      Hello, I am having a problem similar to that experienced by Michael Kummer here. We have pages that show this automatic scrolling issue (examples here and here) and it is sufficiently annoying that we have seen customers bounce while trying to convert. Strangely, it only happens at specific resolutions, so it can be difficult to reproduce. In general we can only consistently reproduce it on a 4k resolution with a browser width between 1517 and 1536px. 
      Thanks to Michael Kummer's help we were able to set the overflow-anchor property to none in the entire body, which fixed the issue as far as we can tell, but also obviously disabled scroll anchoring for the whole site. I tried applying it to the specific element that looked like it was being reloaded, which was the PL Meganav extension, but that was unsuccessful. 
      Can anyone help us figure out which element or ID we can apply this property to, so that we can fix the scrolling issue but not disable scroll anchoring for the entire site?
      Thank you - 
      Glyph Language Services
    • chamois_blanc
      By chamois_blanc+
      Hello,
      Shouldn't the image PL5 component be using the srcset/picture css directives to pick the correct size for an image? or it does already and I don't know how to use it? Thank you for any advice or enlightenment.
×