Since update to WP 5 I get the error message:
Fatal error: Class ‘WP_Customize_Section’ not found in …/themes/uniform/inc/customizer/uniform-custom-classes.php on line 286
I even can’t login into the backend to do anything. I only have acces via FTP
What can I do?
]]>Hi,
I know a bit about CSS but I’m still new with finding selectors and I really don’t know that much about different CSS versions. I was looking for a theme that is fairly new, simple, clean, and highly rated but also not too difficult to customize with CSS (as I’ve found that certain themes don’t always respond well).
I’m currently trying to set a transparent background for this theme for a majority of the sections, but this is one of the first themes I was able to find the selector but it doesn’t respond to the transparent element at all (I have a dark background image set, standard white foreground in content area, and black background just in case). However, the same CSS code will work with a color. For example, the code I’m using (tried in both CSS areas of the customizer) is:
div#content.site-content {
background-color: transparent;
}
The above code does not do anything, however if I change the color from “transparent” to purple” it changes the background color of the content area. Am I missing something?
Thanks in advance,
-Tom
Hi
I have a problem with this theme. When I set site language to RTL languages like Farsi or Arabic, slider doesn’t show the image. Can you fix this please?
Could you tell me how to remove unwanted white space under the navigation menu at top of each page please, the best example to show what it looks like is: https://thedesignhubltd.co.uk/our-services/
Thanks
]]>Can anyone advise me on how to hide or remove the slider when viewing my website on a mobile phone? i am using ‘Uniform’ theme.
My website is: https://www.thedesignhubltd.co.uk
Thanks
]]>Love your theme and our client thinks it’s fantastic as well. The title on the widget footer have a thin black line with a roll over effect. Is there anyway to put that somewhere else, say, in the body of the site, to add a little something extra?
Thank you.
]]>When viewing the home page on phones the home page slider ‘read more’ button doesn’t work. Only the header links. I noticed this not only on my site, but the Uniform Demo site.
Does anyone know how to make the ‘read more’ buttons work?
]]>How do you change the order of the slider images? I noticed the slider images are ordered based on when I created the ‘slider’ post, but I want to rearrange that order.
]]>Actually, it’s impossible without modifying the parent. You also “pollute” the global space with a bunch of constants never used anywhere other than within functions.php, and even then once or zero times.
Consider two things?
1)
On your includes, use a function to include the file:
function uniform_include_file( $file ) {
$parent = trailingslashit( get_template_directory() );
$child = trailingslashit( get_stylesheet_directory() );
$file = file_exists( $child . $file ) ? $child . $file : $parent . $file;
if ( file_exists( $file ) ) {
include_once( $file );
} else {
throw new Exception('File does not exist: ' . $file);
}
}
Or something like that. That would allow child themes to use their own versions of your include files.
2)
I think a better way would be to make all or most of your functions pluggable:
if ( ! function_exists( 'function_name' ) ) {
function function_name() {
....
}
}
3)
You might consider making the content of some sections filterable, or call for them via a pluggable function. For example, the slider on the home page. I wouldn’t need a child theme version of that section-homesider.php
if I could pass parameters to change the WP_Query
call.
4)
Allow the use of excerpts in your front page sections.
You have your css/styles.php
include commented out. Hence, customizer choices for design won’t work.
There’s a better, actually reliable way to include that css. Change the contents of css/styles.php
to be something like:
add_action( 'wp_head', 'uniform_add_css' );
function uniform_add_css() {
$custom = '<style type="text/css">';
// Theme color
$uniform_theme_color = get_theme_mod( 'uniform_theme_color', '#a0ce4e' );
if ( $uniform_theme_color != '#a0ce4e' ) {
// removed all the specific rules for clarity
//
// ( wouldn't it be better to have a few classes
// used throughout the theme?
//
// .uniform-theme-color {
// color: $uniform_theme_color !important;
// }
// .uniform-theme-bgcolor {
// background-color: $uniform_theme_color !important;
// }
// and add them as appropriate to elements? This block of
// seems really fragile and a pain to maintain )
}
$uniform_custom_css = get_theme_mod( 'uniform_custom_css', '' );
$custom .= $uniform_custom_css;
$custom .= '</style>';
echo $custom;
}
]]>
Hello! I’d like to remove (or display:none) “div.slider-container” on the first slide of my slider only. Is there any way to do this, possibly in functions.php? Many thanks!
]]>I like the sticky heading feature. I see how I can toggle it on/off in the header customization settings. However, I’d like to enable it for desktop use only, and disable it on mobile. Is this possible? Thanks
]]>I cannot get the slider to show up. I followed the directions exactly. I am using a plug in called Theme test drive, so it the theme is not live.
]]>