Content expands beyond its column container [closed]

As far as I can tell, the most right column is being nested within the middle reviews column. I imagine that somewhere in the code (template, sidebar, or widget) there is a conditional statement causing your middle column to not get closed off before the right column starts. To illustrate what is happening, this is … Read more

How to make 3 boxes like this screenshot has?

Your question is far too broad; you need to look at the CSS and HTML source and theme that site is based on to find out how that layout is done. Look at other free WP themes to find a similar layout. And learn how to use Firebug with Firefox, or use the developer tools … Read more

FATAL ERROR: WP complains about redeclaration [closed]

Wrap your function with !function_exists() to avoid a redeclare error. if( ! function_exists(‘FAvideoid’) ) : function FAvideoid() { return $wpdb->get_var( “SELECT ‘video_id’ FROM $wpdb->ytvideos ORDER BY RAND() LIMIT 1;”); } endif; Or to reduce the code from being imported more than once: include_once “FA-db.php”; include_once “FA-admin.php”; include_once “FA-ad.php”; But probably the best route is to … Read more

Custom single-product page for product from category x

Assuming that the taxonomy you want to check is product_cat and the term for which you want change template is special and finally assuming that the file you want to use for this special category is named special-single-product.php and resides in the root of your theme, the code you have to use is: add_filter(‘template_include’, ‘special_single_product’); … Read more

Which action/filter can i use for a Member Plugin [closed]

You could try this: function restricted_access() { if( ! is_user_logged_in() ) { global $wp_query; $wp_query->set_404(); status_header(404); } } add_action( ‘wp’, ‘restricted_access’ ); By default, always, if the user is not logged in it will give them the 404 page. The following two functions will keep non-admins out of your Admin Panel and will also hide … Read more

Trying to use wp_register_script/style and enqueu them from an array – getting an error [duplicate]

As the “Error Message” (which is in fact a “doing it wrong”-message) is telling you, you’re using the wrong hook: Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Just read about hooks, wrap your code in a callback and then register it properly on one of the … Read more