Home>Support>How to change the colour of the title text in a Visual Editor segment?

How to change the colour of the title text in a Visual Editor segment?

By Ken Evans, 9 years ago. Last reply by Magus, 9 years ago.

Great tool.
Just upgraded to premium.
I’m new to WordPress/PHP etc and my CSS is rusty to say the least and I’m working to a deadline to get my new site live.
Here are two things that I can’t figure out how to do:
1: Change the properties (font & colour) of the Title text in the Visual editor widget.
– individually
– globally – i.e. change all Title texts in the whole website to the same colour/font.

2: Change the colour of the masthead background.
Please explain
Thanks
Ken

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 9 years, 4 months ago Ken Evans

    And another thing:
    The “more” feature is not working in any of my Visual Editor widgets?
    How can I make it work?

  2. 9 years, 4 months ago Magus
    Hi, I Work Here

    Hi Ken

    To change the Title text colour and font for individual posts please navigate to Appearance->Custom CSS and add the following

    .post-#### .entry-header h1.entry-title {
        color: #3b3b3b;
        font-family: "Times New Roman", Times, serif;
    }
    

    The post ID will need to be changed to the id number for the post you are changing.
    Go to Posts in your WordPress admin, and click the post you need the ID of. Then, if you look in the address bar of your browser, you’ll see something like this

    http://example.com/wp-admin/post.php?post=1280&action=edit
    

    The post ID in the example would be 1280 so your Customm CSS would start with .post-1280

    You can change the color to the hex value for your selected color. To get these you can go here

    http://www.colorpicker.com/

    You can change the font family to any websafe font from this list

    http://www.tutorialrepublic.com/css-reference/css-web-safe-fonts.php

    To Globally change the title colour and font navigate to Appearance->Customize.
    From there go to Theme Design->Fonts.

    Here you can change the Header Font and the Page Colour Title using a colour picker.

    To change the background colour of the masthead navigate to Appearance->Customize.
    From there go to Theme Design->Page.

    You will be able to change the colour using the colour picker for Masthead Background.

    Let us know how you get on

    Magus

  3. 9 years, 4 months ago Ken Evans

    Thanks for your quick reply.
    But my question is not about posts.
    I’m using full pages with lots of Visual Editor widgets in a grid.
    I figured out the Masthead changes but I still don’t know how to:
    1: Change the properties (font & colour) of the Title text in an individual Visual Editor widget.
    2: Change the properties (font & colour) of the Title text all of the Visual Editor widgets on the site. (there will be hundreds) and I don’t want to have to manually add the same CSS to each widget.

    Any clues?

    Thanks
    Ken

  4. 9 years, 4 months ago Magus
    Hi, I Work Here

    Hi Ken

    Apologies for the misunderstanding.

    To change the font and colour of the Title text for an individual Visual Editor Widget you will need to use your browsers developer tools.

    On the page containing the Widget in question, right-click on the title text and select ‘inspect element’ from the dropdown menu.

    When the developer console opens and finishes loading look a few lines above the selected one and there will be a line that looks like this.

    <div class="panel-grid-cell" id="pgc-5564-1-0" abp="355">
    

    We are looking for the id entry, in this case ‘pgc-554-1-0.

    Navigate to the Custom CSS Editor and add the following

    #pgc-554-1-0 .widget-title {
        color: #3b3b3b !important;
        font-family: "Times New Roman", Times, serif !important;
    }
    

    To do it globally will require you to do some advance preparation.

    On the page editor, edit the visual editor widget and expand the Attributes section on the right hand side.
    In the Widget Class type a name for your widget style, you will need to use the same name for all your visual editor widgets.

    Then in Custom CSS you would put

    .your-widget-style .widget-title {
        color: #3b3b3b !important;
        font-family: "Times New Roman", Times, serif !important;
    }
    

    replacing your-widget-style with whatever name you used in the previous step.

    Hope this helps

    Magus

  5. 9 years, 4 months ago Ken Evans

    Thanks,
    Q1:
    “On the page editor…”
    Sorry I don’t know what you mean by “the page editor”
    Which “page editor” ? How do I get there?
    Any page editor? Or is there a special one?

    Q2:
    Are you confirming that I have to add the css to each individual widget as i build the site?

    Ken

  6. 9 years, 4 months ago Magus
    Hi, I Work Here

    Hi Ken

    By the page editor I mean the screen that comes up when you navigate to Pages in your dashboard and select a page to edit.

    If you want them to all look the same then you can just add the Widget Class attribute when you add your content to the widget, and then use the single piece of CSS I gave you at the end of the last post to control them all. If you want them to all look different then yes, you will need to add Custom CSS for each widget.

    Hope this helps

    Magus

  7. 9 years, 4 months ago Ken Evans

    Hi Magus,
    Thanks again for your quick response.
    Sorry but I’m still not clear about this.

    ” You can just add the Widget Class attribute when you add your content to the widget”
    What you seem to be saying is that I have to take the extra step of adding a custom class widget to each widget when I create each new widget instance. It that right?

    ” and then use the single piece of CSS I gave you at the end of the last post to control them all”
    So where do I put the “single piece of CSS” ?

    Lastly, what I had in mind was a site level “default” option that could be set without having to do it at the individual widget level. or indeed the ability to set up several site level default options (default 1, default 2 … default n.)

    It seems to me that you must have some sort of “default property set” somewhere.

    What am I not understanding?

    Thanks
    Ken

  8. 9 years, 4 months ago Magus
    Hi, I Work Here

    Hi Ken

    The best option is to just take the extra step and give the widget a common class name, it doesn’t take long as it is built in to the widget editing screen.

    The single piece of CSS would then be entered in the custom CSS editor found at Appearance-> Custom CSS.

    You could change the defaults but that could affect ANY widget from SiteOrigin that uses the Visual Editor plugin so I would not advise doing it this way, but if you had to you could use the following in the Custom CSS editor

    .so-panel .widget_black-studio-tinymce .widget-title {
    color: #3b3b3b !important;
        font-family: "Times New Roman", Times, serif !important;
    }
    

    If you wanted to set up several defaults then you can only do that by setting the widget class attribute to a default style class you create and have an entry for each within your sites Custom CSS described in my earlier post.

    Hope this makes things a bit clearer

    Magus

  9. 9 years, 4 months ago Ken Evans

    Hi Magus,
    OK – I now have have enough to make a start and do some tests.
    Thanks for the quick reply.
    Ken

  10. 9 years, 4 months ago Ken Evans

    OK – I made it work for the title.
    Now I’m stuck with the CSS.

    You said:
    font-family: “Times New Roman”, Times, serif !important;

    However, I want a sans-serif font.
    I see that I have to change “Times New Roman” to “Helvetica Neue”
    But with what do I replace the next two elements, “Times” and “serif” ?
    Is there a list of the three piece font-family descriptors somewhere?
    Ken

  11. 9 years, 4 months ago Magus
    Hi, I Work Here

    Hi Ken

    With the font-family tag the second and third entry are for failover entries in case the viewer doesn’t have the font listed first. This would be the entry you need for sans-serif

    font-family: "Helvetica Neue" , Arial, sans-serif;
    

    More information on using these can be found here

    http://www.tutorialrepublic.com/css-reference/css-web-safe-fonts.php

    and here

    http://www.w3schools.com/cssref/css_websafe_fonts.asp

    Let us know how you get on

    Magus

  12. 9 years, 4 months ago Ken Evans

    Hi Magus,
    Thanks for that – really helpful.
    My headers are now doing what I want them to do.
    I dug my CCS books out of their hiding place and refreshed my memory so together with your valuable pointers I think I’m now set for a few days of good progress.

    One point, maybe you missed my earlier mention of the “more” feature not working in the Visual Editor widget.
    Any clues?
    Thanks
    Ken

  13. 9 years, 4 months ago Magus
    Hi, I Work Here

    Hi Ken

    I have looked into this and it seems to be an issue with the black studio TinyMCE Plugin after a WordPress update.

    The developer has been made aware on his support pages so all we can do now is wait for an update from him

    Magus

  14. 9 years, 4 months ago Ken Evans

    Hi Magus,
    Thanks for the update. Good to know that this is one time where it wasn’t my finger trouble.

    One more glitch that I have just encountered.
    It is a problem with the “horizontal line” feature in Visual Editor (VE).
    In the editor window, I can put lines wherever I want. However, sometimes they appear on the browser and sometimes they don’t.
    As an example: in one VE panel I have a line, followed by some text and then followed by a line.
    Like this:
    ———-
    text…
    ———-
    When I save and view in the browser sometimes the top line appears without the bottom line and vice versa.
    Curiously – when I scroll the page in Firefox the lines appear and disappear – weird!
    Any clues?

    Anyway, you have great software.
    The more I use it, the more I learn and the more I like it.
    Ken

  15. 9 years, 4 months ago Magus
    Hi, I Work Here

    Hi Ken

    Sorry, I can see no reason why they should display randomly. I have just tried myself and the lines both appear correctly in all browsers. Have you tried a different browser to see if the same occurs? If not then it may be a caching issue in Firefox so clearing the cache may fix the issue.

    Good luck with the rest of your site and don’t hesitate to start a new thread if you need any more help

    All the best

    Magus

  16. 9 years, 4 months ago Ken Evans

    Hi Magus,
    OK – I cleared the cache and then tested again.
    The disappearing lines are still there (if you see what I mean :-) )
    Look at the top left of this video: http://1drv.ms/1blwfDp
    Ken

  17. 9 years, 4 months ago Magus
    Hi, I Work Here

    Hi Ken

    I see what you mean, but based on the video I would still say that this is most likely an issue with the browser rather than the site itself as the lines are obviously being rendered on the page. Once the page is rendered the only thing which can affect the layout or content of the page would be the responsive nature of the theme, through CSS, the relevant section of which is

    /* Headings and Rulers */
    hr {
      background-color: #ccc;
      border: 0;
      height: 1px;
      margin-bottom: 1.5em;
    }
    

    There is nothing there which could cause this. The only other cause related to the site itself would be that another plugin is controlling the appearance of the horizontal line. Could you please list all the plugins you have currently activated and I’ll see if there is anything that could be causing this.

    Magus

  18. 9 years, 4 months ago Ken Evans

    Hi Magus,
    Here are my Plugins:
    Akismet Version 3.1.1
    Black Studio TinyMCE Widget Version 2.2.3
    Coming Soon Page Version 0.6.3
    Contact Form 7 Version 4.1.1
    Meta Slider Version 3.3.2
    Page Builder Version 2.1
    SiteOrigin Widgets Bundle Version 1.2.1

    Than ks
    Ken
    TinyMCE Advanced version 4.1.7

  19. 9 years, 4 months ago Ken Evans

    Just tested it with IE 11 – no problem Looks like a Firefox problem.

  20. 9 years, 4 months ago Magus
    Hi, I Work Here

    Hi Ken

    I’ve checked all the plugins I am not already using and cannot get the same reaction in Firefox as you are. I think it MUST be a browser related issue, or even an issue with the pc/vga card in general. Do you have a public URL where the site can be viewed?

    Magus

  21. 9 years, 4 months ago Magus
    Hi, I Work Here

    Hi Ken

    In that case ignore my last post.

    Regards

    Magus

  22. 9 years, 4 months ago Ken Evans

    Hi Magus,
    My conclusion is that it is a problem with my graphics card capacity.
    My present configuration seems to be maxing it out.
    I’m using a Dell 7720 laptop with four external screens. (3* 24″ and one 23″)
    The screens are attached via HDMI, VGA, and two via a Plugable USB3 adapter.
    I need a bigger laptop! This one is old (2.5 years).

    Thanks for your help
    Ken

  23. 9 years, 4 months ago Magus
    Hi, I Work Here

    Hi Ken

    Glad to hear you have found the cause. As previously stated, please don’t hesitate to start a new thread if you need any more help.

    Good luck

    Magus

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More