forcewerk
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Extended Search] Search result shows also widgets of pagesGood Day and thanks for your reply! Yes, the problem still occurs! However, I found a workaround (quick and dirty). I’ve set the CSS for the widgets container inside the search results container as “display: none;”…
??Same here! Amazing Plugin – PhotoSwipe is by far the best JS Lightbox!
I also think it would be great to have the outer space of the grid set to 0, when adding space between images!
Thanks in advance!
*actually I had to downgrade from PHP Version 7.2 to 7.1 due to issues with the WPBakery Page Builder. The visual editor showed no content in the backend. As soon as I switched to PHP 7.1 it worked fine again.
PHP Version: 7.2
I’ve activated the PHP Error Log:[28-Jun-2018 13:51:34 UTC] PHP Warning: count(): Parameter must be an array or an object that implements Countable in /homepages/3/username/htdocs/2018/wp-content/themes/gymbase/shortcodes/slider.php on line 8
[28-Jun-2018 13:51:34 UTC] PHP Warning: count(): Parameter must be an array or an object that implements Countable in /homepages/3/username/htdocs/2018/wp-content/themes/gymbase/shortcodes/slider.php on line 28
[28-Jun-2018 13:51:36 UTC] PHP Warning: count(): Parameter must be an array or an object that implements Countable in /homepages/3/username/htdocs/2018/wp-content/themes/gymbase/shortcodes/slider.php on line 8
[28-Jun-2018 13:51:36 UTC] PHP Warning: count(): Parameter must be an array or an object that implements Countable in /homepages/3/username/htdocs/2018/wp-content/themes/gymbase/shortcodes/slider.php on line 28
[28-Jun-2018 13:58:36 UTC] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 262144 bytes) in /homepages/3/username/htdocs/2018/wp-includes/class-wp-term-query.php on line 288That’s the source of slider.php:
<?php //slider function theme_slider($atts, $content) { global $theme_options; $output = ''; $slides_count = count($theme_options["slider_image_url"]); if(count($slides_count)) { $output .= '<ul class="slider">'; for($i=0; $i<$slides_count; $i++) { $output .= '<li id="slide_' . $i . '" style="background-image: url(' . $theme_options["slider_image_url"][$i] . ');"> </li>'; } $output .= '</ul>'; } return $output; } add_shortcode("slider", "theme_slider"); //slider content function theme_slider_content($atts, $content) { global $theme_options; $output = ""; $slides_count = count($theme_options["slider_image_url"]); if(count($slides_count)) { $output .= '<div class="slider_content_box clearfix">'; for($i=0; $i<$slides_count; $i++) { if($theme_options["slider_image_title"][$i]!="" || $theme_options["slider_image_subtitle"][$i]!="") { $output .= '<div id="slide_' . $i . '_content" class="slider_content"' . ($i==0 ? ' style="display: block;"' : '') . '>'; if($theme_options["slider_image_title"][$i]!="") $output .= '<h1 class="title">' . ($theme_options["slider_image_title"][$i]) . '</h1>'; if($theme_options["slider_image_subtitle"][$i]!="") $output .= ($theme_options["slider_image_title"][$i]!="" ? '<br />' : '') . '<h3 class="subtitle">' . esc_attr($theme_options["slider_image_subtitle"][$i]) . '</h3>'; $output .= '</div>'; } } $output .= ' <div class="slider_navigation controls">'; $j = 0; for($i=0; $i<$slides_count; $i++) { if($theme_options["slider_image_link"][$i]!="") $output .= '<a class="more" href="' . esc_attr($theme_options["slider_image_link"][$i]) . '" id="slide_' . $i . '_url"' . ($i==0 ? ' style="display: block;"' : '') . '> </a>'; } $output .= ' <a id="prev" class="prev" href="#"> </a><a id="next" class="next" href="#"> </a> </div> </div>'; } return $output; } add_shortcode("slider_content", "theme_slider_content"); ?>
Thank you!
Hi Gareth, thanks for getting back to me so quickly!
The plugin is now activated… and the page not loading anymore.
https://www.bsv-freiburg.de/2018/gruppen/Thanks for checking!
Michael