Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

A plugin just messed up a custom widget area WordPress

  • SOLVED

I had someone add some widget areas to my front page and I just screwed something up.

I believe it was a plugin that changed something but the widget areas that replaced the 'page calls' on the front page are not working now. I'm getting the 'page calls' again.

The 3 elements across the page with the same image are page calls via the Elegant Themes Chamilion template settings. They were replaced with widget areas but now they aren't working.

Anyone got a minute to help out here? I just launched a fundraising project today and this is pretty important.

jezyk.pila.pl

The plugin I added is http://www.gopiplus.com/work/2011/01/14/wordpress-popup/#

I believe it changed the footer.php file but I have no idea what changes were made.

Answers (3)

2012-06-25

Arnav Joy answers:

so have you changed any settings or added anything or new widget?


Doug Montgomery comments:

Didn't change any settings or messed with code but I did install a plugin, the one mentioned above. I noticed the problem from that point on. I deactivated the plugin and uninstalled it but no luck.


Doug Montgomery comments:

pm sent


Arnav Joy comments:

so your problem is that where this text is written "7 Rules for Learning ANY Language!!"

you have same three titles and content at home page

that should be different ,

is this your problem?


Doug Montgomery comments:

Yes, you created 3 widget areas and that area is supposed to call the widgets first and if nothing in the widget area then it should call from the cms or template default.


Doug Montgomery comments:

I've got about 30 more minutes...Then I have to go to a meeting.


Arnav Joy comments:

please check now


Doug Montgomery comments:

GREAT! What happened? Was it this plugin?

I need this plugin if at all possible.


Arnav Joy comments:

no it is not plugin , it is a amendment in options_chameleon.php

do not forget to vote


Doug Montgomery comments:

Unfortunately I can't vote.

2012-06-25

S├ębastien | French WordpressDesigner answers:

deactivate this plugin


Doug Montgomery comments:

I did


Doug Montgomery comments:

My facebook plugin in the footer also went haywire


Doug Montgomery comments:

Ok...confused...fb is back without any changes but the other is still haywire


S├ębastien | French WordpressDesigner comments:

reactivate your widget

2012-06-25

Navjot Singh answers:

Can you post the contents of your footer.php?


Doug Montgomery comments:

Here's the code for the footer.php but I just thought of something...can a plugin change the 'footer'? It's in the template.

<div id="footer">

<div id="footer-content" class="clearfix">

<div id="footer-widgets" class="clearfix">

<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Footer') ) : ?>

<?php endif; ?>

</div> <!-- end #footer-widgets -->

<p id="copyright"><?php esc_html_e('Designed by ','Chameleon'); ?> <a href="http://www.elegantthemes.com" title="Premium WordPress Themes">Elegant WordPress Themes</a> | <?php esc_html_e('Powered by ','Chameleon'); ?> <a href="http://www.wordpress.org">WordPress</a></p>

</div> <!-- end #footer-content -->

</div> <!-- end #footer -->

</div> <!-- end #container -->

<?php get_template_part('includes/scripts'); ?>

<?php wp_footer(); ?>

</body>

</html>


Navjot Singh comments:

I asked you for footer.php's code because that's where you had the doubt. A plugin can change the footer through wp_footer() hook. Anyways, can you please paste the code of your theme's home.php? The code which is duplicating these 3 areas is in there.


Doug Montgomery comments:

<blockquote><?php get_header(); ?>



<?php if ( get_option('chameleon_featured') == 'on' ) get_template_part('includes/featured'); ?>



<?php if ( get_option('chameleon_quote') == 'on' ) { ?>

<div id="category-name">

<div id="category-inner">

<?php if ( get_option('chameleon_quote_one') <> '' ) { ?>

<h3>"<?php echo esc_html(get_option('chameleon_quote_one')); ?>"</h3>

<?php } ?>

<?php if ( get_option('chameleon_quote_two') <> '' ) { ?>

<p><?php echo esc_html(get_option('chameleon_quote_two')); ?></p>

<?php } ?>

</div>

</div> <!-- end .category-name -->

<?php } ?>



<div id="content-area">



<?php if ( get_option('chameleon_blog_style') == 'false' ) { ?>



<?php if ( get_option('chameleon_display_blurbs') == 'on' ){ ?>

<div id="services" class="clearfix">

<?php for ($i=1; $i <= 3; $i++) { ?>

<?php
$pageID = get_pageId(html_entity_decode(get_option('chameleon_home_page_'.$i)));
if($pageID != 0){
query_posts('page_id=' . $pageID); while (have_posts()) : the_post(); ?>

<?php

global $more; $more = 0;

?>

<div class="service<?php if ( $i == 3 ) echo ' last'; ?>">

<h3 class="title"><?php the_title(); ?></h3>



<?php

$thumb = '';

$width = 232;

$height = 117;

$classtext = 'item-image';

$titletext = get_the_title();

$thumbnail = get_thumbnail($width,$height,$classtext,$titletext,$titletext,false,'etservice');

$thumb = $thumbnail["thumb"];

$et_service_link = get_post_meta($post->ID,'etlink',true) ? get_post_meta($post->ID,'etlink',true) : get_permalink();

?>

<?php if ( $thumb <> '' ) { ?>

<div class="thumb">

<a href="<?php echo $et_service_link; ?>">

<?php print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext, $width, $height, $classtext); ?>

<span class="more-icon"></span>

</a>

</div> <!-- end .thumb -->

<?php } ?>



<?php the_content(''); ?>

</div> <!-- end .service -->

<?php endwhile; wp_reset_query(); ?>

<?php } else { ?>
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('content-area'.$i) ) : ?>

<?php endif; ?>

<?php } } ?>

</div> <!-- end #services -->

<?php }?>


<div id="from-blog">

<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Homepage') ) : ?>

<?php endif; ?>

</div> <!-- end #from-blog -->



<?php if ( get_option('chameleon_display_media') == 'on' ) { ?>

<div id="multi-media-bar">

<h3 class="title"><?php esc_html_e('Excellent Videos To Improve Pronunciation','Chameleon'); ?></h3>

<div id="et-multi-media" class="clearfix">

<a id="left-multi-media" href="#"><?php esc_html_e('Previous','Chameleon'); ?></a>

<a id="right-multi-media" href="#"<?php esc_html_e('Next','Chameleon'); ?>></a>

<div id="media-slides">

<?php

$args=array(

'showposts' => (int) get_option('chameleon_posts_media'),

'category__not_in' => (array) get_option('chameleon_exlcats_media')

);

query_posts($args);

$media_current_post = 1;

$media_open = false;

?>

<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

<?php

$width = 100;

$height = 100;

$titletext = get_the_title();

$thumbnail = get_thumbnail($width,$height,'multi-media-image',$titletext,$titletext,true,'Media');

$thumb = $thumbnail["thumb"];

$et_medialink = get_post_meta($post->ID,'et_medialink',true) ? get_post_meta($post->ID,'et_medialink',true) : '';

$et_videolink = get_post_meta($post->ID,'et_videolink',true) ? get_post_meta($post->ID,'et_videolink',true) : '';

$et_media_description = get_post_meta($post->ID,'et_media_description',true) ? get_post_meta($post->ID,'et_media_description',true) : truncate_post(90,false);

?>

<?php if ( $media_current_post == 1 || ($media_current_post - 1) % 7 == 0 ) {

$media_open = true; ?>

<div class="media-slide">

<?php } ?>

<div class="thumb<?php if ( $media_current_post % 7 == 0 ) echo ' last'; ?>">

<?php if ( $et_medialink <> '' ) { ?>

<a href="<?php echo esc_url($et_medialink); ?>">

<?php } elseif ( $et_videolink <> '' ) { ?>

<a href="<?php echo esc_url($et_videolink); ?>" class="et-video et_video_lightbox" title="<?php echo esc_attr($titletext); ?>">

<?php } else { ?>

<a href="<?php echo esc_attr($thumbnail["fullpath"]); ?>" rel="media" class="fancybox" title="<?php echo esc_attr($titletext); ?>">

<?php } ?>

<?php print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext, $width, $height, 'multi-media-image'); ?>

<span class="more"></span>

</a>

<div class="media-description">

<p><?php echo $et_media_description; ?></p>

<span class="media-arrow"></span>

</div>

</div> <!-- end .thumb -->

<?php if ( $media_current_post % 7 == 0 ) {

$media_open = false; ?>

</div> <!-- end .media-slide -->

<?php } ?>



<?php $media_current_post++;

endwhile; ?>

<?php endif; wp_reset_query(); ?>



<?php if ( $media_open ) { ?>

</div> <!-- end .media-slide -->

<?php } ?>

</div> <!-- end #media-slides -->

</div> <!-- end #et-multi-media -->

</div> <!-- end #multi-media-bar -->

<?php } ?>



<div class="clear"></div>



<?php } else { ?>

<div id="left-area">

<?php get_template_part('includes/entry','home'); ?>

</div> <!-- end #left-area -->



<?php get_sidebar(); ?>

<div class="clear"></div>

<?php } ?>



</div> <!-- end #content-area -->



<?php get_footer(); ?></blockquote>


Doug Montgomery comments:

oops


Navjot Singh comments:

I guess you have got it working now. Good.


Doug Montgomery comments:

Yes, thank you.