Theme preview issue – 2
-
Hi,
I am a developer of the wordpress theme in question. I updated my theme recently and checking now the theme looks in the theme preview in the theme directory I noticed that .header-img body class keeps being added in the preview although there is no header image in the preview!
I have several body classes (like .header-img or .sidebar-left) that are added when certain condition is true via customizer. The code for adding the class:if ( get_header_image() !== false ) {
$classes[] = ‘header-img’;
}This class is responsible for completely different header styles (margin etc.) than when the theme has no header image. So right now the theme in the preview looks weird with huge spacing above and below the header which shouldn’t be there if not for this class.
Apart from theme preview that is if the theme is downloaded and installed the issue doesn’t appear any more.
The theme files are here: https://themes.svn.www.ads-software.com/actinia/2.1.2/
The body classes are managed in inc/extras.phpThe page I need help with: [log in to see the link]
- The topic ‘Theme preview issue – 2’ is closed to new replies.