fadedpresence
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to remove front page php safelyThank you very much :3
Forum: Fixing WordPress
In reply to: How to remove front page php safelyApologies – I’m using the ‘Driftwood’ theme by Nudge Media Design.
This is the full index.php
<?php get_header(); ?> <div class="container"> <?php if(get_theme_mod( 'nmd_featured_slider' ) == true) : ?> <?php get_template_part('inc/featured/featured'); ?> <?php endif; ?> <div class="beforecontent-container"> <?php if(is_front_page()) : ?> <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("Before Content Widget") ) : ?><?php endif; ?> <?php endif; ?> </div> <div id="content"> <div id="main" <?php if(get_theme_mod('nmd_sidebar_homepage') == true) : ?>class="fullwidth"<?php endif; ?>> <?php if(get_theme_mod('nmd_home_layout') == 'grid' || get_theme_mod('nmd_home_layout') == 'full_grid') : ?><ul class="nmd-grid"><?php endif; ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <?php if(get_theme_mod('nmd_home_layout') == 'grid') : ?> <?php get_template_part('content', 'grid'); ?> <?php elseif(get_theme_mod('nmd_home_layout') == 'list') : ?> <?php get_template_part('content', 'list'); ?> <?php elseif(get_theme_mod('nmd_home_layout') == 'full_list') : ?> <?php if( $wp_query->current_post == 0 && !is_paged() ) : ?> <?php get_template_part('content'); ?> <div class="bannerad-container"> <?php if(is_front_page()) : ?> <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("Banner Ad Widget") ) : ?><?php endif; ?> <?php endif; ?> </div> <?php else : ?> <?php get_template_part('content', 'list'); ?> <?php endif; ?> <?php elseif(get_theme_mod('nmd_home_layout') == 'full_grid') : ?> <?php if( $wp_query->current_post == 0 && !is_paged() ) : ?> <?php get_template_part('content'); ?> <div class="bannerad-widget-container"> <div class="bannerad-widget"> <?php if(is_front_page()) : ?> <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("Banner Ad Widget") ) : ?><?php endif; ?> <?php endif; ?> </div> </div> <?php else : ?> <?php get_template_part('content', 'grid'); ?> <?php endif; ?> <?php else : ?> <?php get_template_part('content'); ?> <?php endif; ?> <?php endwhile; ?> <?php if(get_theme_mod('nmd_home_layout') == 'grid' || get_theme_mod('nmd_home_layout') == 'full_grid') : ?></ul><?php endif; ?> <?php nudgemedia_pagination(); ?> <?php endif; ?> </div> <?php if(get_theme_mod('nmd_sidebar_homepage')) : else : ?><?php get_sidebar(); ?><?php endif; ?> <?php get_footer(); ?>
Forum: Fixing WordPress
In reply to: How to remove front page php safelyHi! No, it’s in the index.php of the theme!
<div class="beforecontent-container"> <?php if(is_front_page()) : ?> <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("Before Content Widget") ) : ?><?php endif; ?> <?php endif; ?>
Forum: Fixing WordPress
In reply to: Plugin CSS not showing up on sidebarHi Andrew,
Thank you – that worked, but I have also now received information about the theme itself from the plugin developer.
“The register_sidebar function in the theme needs to look like this for the before_widget parameter:
'before_widget' => '<article id="%1$s" class="side-widget %2$s">'
From what I can tell, your theme’s only looks like this:
'before_widget' => '<article class="side-widget">'
See how it’s missing pieces? That missing %2$s in the class is a placeholder for “the class name for the widget”. That’s how widgets are styled according to their type (search widget, archive widget, or in this case “UBB recent reviews widget”).
Your theme creator needs to add those extra parameters in. The ID one is optional but the class one is not.
Forum: Fixing WordPress
In reply to: Plugin CSS not showing up on sidebarHi Andrew,
Thank you for your response!
I am unable to make just the widget I want have that class, as it’s a drag and drop widget that I can’t change styling options for. If I were to edit the css or the html for the widgets, wouldn’t all widgets then have this class?