Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #259128

    rokica23
    Participant

    Hi i’ve been trying different ways to add css on post settings to no avail. Look at this image to see how I am doing it, and if its wrong the way I do, then let me know how to do.CUSTOM CSS FROM POST SETTINGS

    #259131

    rokica23
    Participant

    #259253

    Friech
    Moderator

    Hi There,

    Thanks for writing in! That was actually an class field. You need to place your custom CSS rules under Custom > CSS in the Customizer.

    Hope it helps, Cheers!

    #259484

    rokica23
    Participant

    yeah i tried..so that field won’t work for nothing?

    #259502

    Thai
    Moderator

    Hi There,
    In this case, 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 / Password

    Don’t forget to select Set as a private reply. This ensures your information is only visible to our staff.

    #259726

    rokica23
    Participant
    This reply has been marked as private.
    #259894

    Friech
    Moderator

    Hi There,

    I tried to add your code under Custom > CSS in the Customizer and it did worked fine. The entry wrap of the pages does have an pink background now. The class field is when you need to apply style to the specific page. For example you want only the “about page” entry wrap to have the pink background. You add “myclass” to the class field of the about page, and your css code will be like this:

    .myclass .entry-wrap {
    	background-color: pink;
    }

    Hope it helps, Cheers!

    #260607

    rokica23
    Participant

    yes, but in in the body css field from post settings,it doesn’t work well putting those classes, i did tried in the customizer, but i want to use the body css so i dont have to go there…also give me an example to add a custom class to the body css from the post/pages settings and we will done with the discussion. Thank you.

    #260698

    Thai
    Moderator

    Hi There,
    To add Custom CSS class to <body>, in WordPress Dashboard, please go to edit the page / post you want to add custom CSS classes, then scroll down to Page Settings / Post Settings > Body CSS Class(es) > add your custom classes.
    For more information about the page / post meta, please take a look at these articles:
    https://theme.co/x/member/kb/meta-options-pages/
    https://theme.co/x/member/kb/meta-options-posts/
    Hope it helps.

    #262427

    rokica23
    Participant

    Yes, I know that, but give me an example of how can I add a css to change the look of any part of my website?, remember the screenshot I took with the css examples and it failed, but if i do in the customizer, it works.

    #262723

    Friech
    Moderator

    Hi There,

    The Body class field is a field to add only a class, not the whole CSS rules. Now, how do I use the class on the CSS rule? The class will be a part of your selector to target specifically the elements that you want to be affected by your CSS rule. For example on my “about page” I want all h2 headings on that page to have a pink color. What I do is add an myclass to that page. Then I’ll write an CSS rule using that class to style all h2 headings on my “about page”

    .myclass h2 {
    color: pink;
    }

    Now you place this code either on Customizer > Custom CSS or on child theme’s style.css file.

    Hope this shed some lights. Cheers!

    #263202

    rokica23
    Participant

    Now it works and I got it…one final things is could you update me the rev. slider plugin please, or how do i update because I’m having some problems doing so.

    #263445

    Rad
    Moderator

    Hi there,

    Have you tried deleting your old rev. slider plugin at Admin > PLugins and install it back at Admin > Addons > Extensions ? You should try, but make sure that you have backup of all of your slides.

    Thanks.!