Block header style not applying on custom widgets in visual editor

Posted in: Newspaper
Post count: 27

When I change block header style of site, it is correctly applied to any widget provided by theme, but not on default wordpress ones like Latest comments or Site information. Its problem only with widgets composed to sidebar in Visual Editor, not affecting default WordPress widgets section – they show correctly.
Sidebar on homepage made by Visual Editor
Visual editor view
Problem is that when I use WordPress widgets in Visual Editor, header is H2 a with different class. When I use theme widgets in VE, they have headers with H4 and correct class.

Post count: 20688

Hi,

The easiest way to do it without modifications to the theme files, would be to use some Css to style the default widget titles to look like your current style, like this for example
https://www.screencast.com/t/Rh5cQh2n4P
I am assuming you are using Global header style 14, you can try this code and see if it is working for you. The code must be entered in Theme panel->Custom Css

.widgettitle {
width: 100%;
font-size: 13px;
font-weight: 400;
margin-top: 0;
margin-bottom: 26px;
padding: 11px 0;
line-height: 1;
position: relative;
overflow: hidden;
text-align: center;
border: 1px solid transparent;
background-color: #000000 !important;
}

Thanks

Post count: 27

Thanks for advice, at the end I found another solution – used sidepanel widget on homepage and its styled fine there. This was more like report so you can fix it sometimes in future. Thanks for fast reply!

Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘Newspaper’ is closed to new topics and replies.