covenantchild
Forum Replies Created
-
Forum: Reviews
In reply to: [Restrict Widgets] Doesn’t Work with WP 4.8.3Not sure if this helps …
I ran into an issue when I tried to hide widgets in individual posts that belong to specified categories (i.e. categories I choose in the widget admin). I fixed it by adding this code to the plugin’s main restrict-widgets.php file, at line 1477:
} elseif (is_single() ) { $valid_option = false; foreach (get_the_category() as $c) { if (isset( $options['category_' . $c->term_id] )) { $valid_option = true; break; } } }
PS Watch the braces {} to ensure the if..elseif…else statement is properly closed out.
Okay thanks!
I purchased the pro version, but I can’t seem to find the documentation on the custom forms…please help!
Forum: Fixing WordPress
In reply to: Primary Div not showing up in ChromeI finally figured it out a fix (after like 5hrs). For some reason, Chrome kept setting the width of the div to 0. Defining the width in the CSS with
!important
fixed it.I also noticed the same error on my Blackberry browser, but it wasn’t as straightforward. The only way I could fix that was to define another CSS and remove the div’s
height
andoverflow
attributes. Then use a Mobile Browser detection script to set the appropriate stylesheet.Forum: Fixing WordPress
In reply to: Primary Div not showing up in ChromeHey…not sure if you made any headway on this issue. I’m dealing with the same thing, where Chrome & mobile browsers don’t show the primary div. I noticed that removing the
overflow: auto
style attribute makes the div display in Chrome. I’m not sure why that’s the case…