Jump to content
zymondee

Add Custom Css Class To Boxes

Recommended Posts

zymondee    0
zymondee

I want to color the h3 headline in a dark gray and the following text also in a gray tone.

How can I do this?

If I have understood it right I shall use the field in the bottom of the edit page meta settings (choosing boxes)

There I find the Custom CSS Class

and the field with this text above.

"Att custom css class to these boxes"

Is there any video or good guide which describes how you shall write the syntax in this field?

I have looked into some CSS guides since I am a complete rookie on CSS and tried some but nothing happens.

I have used firebug and tracked it to the h3 header. And found this type of code if the text is gray.

#boxes .fboxtext { . 
font-size: 16px; . 
color: rgba(0, 0, 0, 0.4) }

But this line of code is nothing I can use in this field or is it?

Nothing happens when I insert and Save the Meta Settings.

Can someone please help me on this? I would be really thankful! :)

Share this post


Link to post
Share on other sites
batman    389
batman

Hi zymondee

I´m a newbie too but you can try add in

PageLines > Site Options > Custom Code > CSS Rules

or in

Pagelines Customize (plugin)

For example you can add

#boxes .fboxtext { 
color: dimgray }

It is advisable to learn how to do this on your own too.

Check out http://www.pagelines...wiki/Custom_CSS

Also you can go

http://www.w3schools..._colornames.asp

or

http://html-color-codes.info/

and select the color as you like

You may also use color codes there, such as #C00000 , if you wish to use more specific colors.

If you post your site's url is more easy to resolve the issue.

;)

  • Like 1

Life is too short to remove USB safely ...

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

Hi,

Did Batman's suggestion resolve your issue ?

  • Like 1

Please search our forums, before posting!

Share this post


Link to post
Share on other sites
zymondee    0
zymondee

Thank you so much Batman!!

You made my day cause it worked like a charm!

But it would also be great to be able to customize it for single pages aswell I think.

It is a pity it does not work in the meta settings for the page as a described.

Cheers!

Hi zymondee

I´m a newbie too but you can try add in

PageLines > Site Options > Custom Code > CSS Rules

or in

Pagelines Customize (plugin)

For example you can add

#boxes .fboxtext { 
color: dimgray }

It is advisable to learn how to do this on your own too.

Check out http://www.pagelines...wiki/Custom_CSS

Also you can go

http://www.w3schools..._colornames.asp

or

http://html-color-codes.info/

and select the color as you like

You may also use color codes there, such as #C00000 , if you wish to use more specific colors.

If you post your site's url is more easy to resolve the issue.

;)

Share this post


Link to post
Share on other sites
zymondee    0
zymondee

Yes!!

Hi,

Did Batman's suggestion resolve your issue ?

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

But it would also be great to be able to customize it for single pages aswell I think.

It is a pity it does not work in the meta settings for the page as a described.

Cheers!

What do you mean ?


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
agumperz    0
agumperz

I have a similar question. I would like to make a CSS change on one particular box--I need to add a border to the graphic on only that one box (rather than to all my boxes). 

 

1. I inspected the element to come up with the following selector: div.fboxgraphic a img{

 

2. Then I added this rule to the Boxes custom class field on the box i want to modify:  div.fboxgraphic a img{border-style:solid; border-width:5px;}

 

2a. if I understand correctly, this should:

add a 5px, solid border to any <img> tag 

contained within an <a>

contained with a <div> with class=fboxgraphic

 

No results. I can't tell if my selector is wrong, or if there is some other reason why my CSS rule is not being applied.

 

Thanks.

 

 

Share this post


Link to post
Share on other sites
James B    436
James B

Hi there, you can target one box on the entire site. If you look slightly higher up the html code you'll see each box will be issued with an ID. You can use the box id followed by the items you want to target inside that box to make the changes. Also depending on which setup for you have for where the images are placed in the box (top,left,right) the css can change, so make sure you look for .inline_thumbs or .top_thumbs etc

 

 

#fbox_5
.inline_thumbs .fboxgraphic {
    border: 1px solid black;
    padding-top: 5px;
}

Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
tamarpostma    0
tamarpostma

Hi!

I have been having the same problem. I have used this code to target one of the boxes, unfortunately it did not work. But i really want to target a whole set of boxes.

 

I tried both these:

 .fbox_1387
.inline_thumbs .fboxgraphic {
    border: 1px solid black;
    padding-top: 5px;
border-radius: 0px 25px 25px 0px;}

 

and this(adding #boxes):

#boxes .fbox_1387
.inline_thumbs .fboxgraphic {
    border: 1px solid black;
    padding-top: 5px;
border-radius: 0px 25px 25px 0px;}

 

the id is 1387, which I found using firebug. I really want to change the look of all the boxes on that particular page, preferably using a background image. Is this possible?

 

Thanks,

 

Tamar

Share this post


Link to post
Share on other sites
tamarpostma    0
tamarpostma

Should I use:

#boxes_clone_2 or

or .fboxes fbox

 

Why do I see fboxes and #boxes for seemingly the same thing?! Sorry, I'm just a beginner at this css, it's worse than learning french!

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

Hi Tamar,

 

If it is just for that page, you can use the page id class, which is in the body class, you can find it using FireBug.

 

However, you can also use the Custom Class option which adds this class to your box set that can be used to style these boxes.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

Should I use:

#boxes_clone_2 or

or .fboxes fbox

 

Why do I see fboxes and #boxes for seemingly the same thing?! Sorry, I'm just a beginner at this css, it's worse than learning french!

 

You can use this which should help you.

 

.page-id-1183 .section-boxes {
background: red;
}

Which looks like this:

 

http://d.pr/i/XksW


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
tamarpostma    0
tamarpostma

Yes! That worked... Thank you. Now only one last detail. I would like to have a border around each box. Is that possible too?

Share this post


Link to post
Share on other sites
tamarpostma    0
tamarpostma

Figured it out!

.page-id-1001  .fbox{
background: white;
    border: 1px solid black;
    padding-top: 5px;
border-radius: 25px 25px 25px 25px;}

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

Yup, thats possible, every box is given a unique ID, you can use these ID's to to style each individual box.

 

For example, your "digitaal lesstof" box has an ID of fbox_1324, so you can use that to style that box.

 

#fbox_1324 {
border: 1px solid red;
} 

http://d.pr/i/4dlC


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

No problem, happy to help!


Please search our forums, before posting!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Similar Content

    • Michael Kummer
      By Michael Kummer+
      Hi guys,
      every since Chrome introduce scroll anchoring (see chrome://flags) blog posts on my page start scroll automatically as soon as the user scrolls down a bit. It is super annoying and I don't know exactly what triggers the incompatibility with Chrome's latest feature that is supposed to improve usability.
      Since I don't know what causes it (Pagelines, or a Plugin), I would like to disable the feature using a CSS override that Google describes as follow:
      "Scroll anchoring aims to be the default mode of behavior when launched, so that users benefit from it even on legacy content. A CSS property overflow-anchor can disable scroll anchoring in part or all of a webpage (opt out), or exclude portions of the DOM from the anchor node selection algorithm. This property supports the following values when applied to an element E:
      overflow-anchor: auto (the default value) declares that the DOM subtree rooted at E is eligible to participate in the anchor node selection algorithm for any scrolling box created by E or an ancestor of E. overflow-anchor: none declares that the DOM subtree rooted at E is not eligible to participate in the anchor node selection algorithm for any scrolling box created by E or an ancestor of E." Do you guys happen to know how to use that property with the ROOT element so it applies to the whole page?
      Thanks
      Michael 
    • wyo22ski
      By wyo22ski+
      Hello,
       
      I'm basically a designer and understand a little on how to change CSS, etc., so please excuse my ignorance...  I recently upgraded to the newest platform from the DMS and my old DMS theme no longer functions.  I'm trying to replace the image slider that my Horizon Photography Theme (Nick Haskins) had created.  The Impulse image slider seemed the closest to what I need, but there are problems.
      It seems the the Impulse section for sliding images defaults to the image width, no the height.  I can change the Impulse stage height and width, but this does nothing to the internal content.  For instance, if I change the height to 200 pixels, the image remains the full width and only shows a cropped section.  I would like the ability to change the Impulse height, and have the image height fit space. 
      I've put this custom CSS in, but again, this only controls the stage height of Impulse:
      .pl-sn-impulse .pl-impulse-cell .cell-wrap, .pl-impulse-container, .owl-stage-outer {
        width: 100%;
      }
       
      Any suggestions welcome.  Thanks 
    • Objectif-Mariage
      By Objectif-Mariage+
      Hello. 
      I have just realized that CSS (Less plugin) , is not working..... I have disable all plugins (except PL CUSTOM LESS and PL5) , and ... it's not working ... 
      It's not the first time. Usually I had trouble with a plugin name Autoptimize , but it's Desactivate now , all memory have been purge, and it's still not working! :-/ So it's not from this plugin. 
      NB : When I am logged on my website, if i go on the black wordpress dashboard bar, go on the PL icon, clic on </> LESS/CSS => then the page suddenly apply the CSS .... But As soon that i reload the page, nothing. I think the problem is that the plugin LESS/CSS does not load properly (if I can say that with my simples words).
      I order to keep the site "good looking" I have temporally copy/paste all my LESS code in a plugin : Script n Styles that apply the LESS/CSS code... but it's not a solution for long time.
      Can someone help me ? Did I do something wrong ? Is it an update ? 
       
      my website : https://www.wedding-photography-minneapolis.com
    • Jason
      By Jason+
      Feel free to delete this post if its not helpful or its just plain wrong.
       
      I though it might be useful to share how I customize the size of the builder. (reduce my eyestrain )
      1 - install stylerbot extension in chrome (stylerbot keeps this css every time you access the url)
       
      2- add this css to stylerbot for the site you are working on
      .CodeMirror {
          font-size: 14px;
          height: 600px;
      }
      .pl-workarea.pl-has-sidebar .pl-workarea-sidebar-container {
          right: 0px;
          width: 500px;
      }
      .pl-workarea.pl-has-sidebar .iframe-container {
          right: 500px ;
      }
       
      change sizes to suit.
       
      Cheers.
    • Jason
      By Jason+
      Hi.
      I can't seem to get the Teamwork section to accept custom css. I am trying to change the padding from 7em to 1em on the splash part
      I have tried
        .pl-sn-teamwork .pl-tw-splash {
          padding-top: 1em;
          padding-bottom: 1em;
        }
       
      This works in chrome inspect but when added to custom css nothing happens.
      I have also tried most of the classes I can see accoiated with this section but again nothng seems to happen.
      Any ideas?
×