WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Constant Contact for WordPress] Widget Display Problems (13 posts)

  1. AndreaPickerin
    Member
    Posted 4 years ago #

    The widget is displaying the text "widgetized footer" and I cannot find a way of eliminating that text - how can I do that?

    Also how is it possible to reduce the size of the boxes?

    Thanks very much

    Andrea.

  2. jamesbenson
    Member
    Posted 4 years ago #

    Can you show me an example please?
    You can change the size of the boxes using CSS, usually your theme will define these so it's not possible for the plugin to give control over them.

  3. rickrrr
    Member
    Posted 4 years ago #

    I've also just encountered the text display issue, the description text for the theme's sidebar is being displayed. It's actually the same issue that rwallin is seeing here http://wordpress.org/support/topic/381692?replies=2.

    In line 84 of constant-contact-api-widget.php your are doing an extract($args). $args contains "description" (since WP 2.9) see http://codex.wordpress.org/Function_Reference/register_sidebar and when you do the extract it is overwriting your $description, with the sidebar description, or blank if the sidebar description has not been set.

    If you have a filter on for constant_contact_form_description it will mask the issue.

    Rick

  4. jaimetorres
    Member
    Posted 4 years ago #

    Rickrrr

    I have a similar problem at

    my site

    where the widget pick out the sidebar description. what exactly do i need to do to get rid of the excess text/

    Thanks in advance for your help

    jaime

  5. rickrrr
    Member
    Posted 4 years ago #

    Sure, if you use the new filters you don't even have to hack any plugin files, just add these 2 lines to your theme's functions.php:

    function cc_desc() { return ''; }
    function add_filter('constant_contact_form_description','cc_desc');

    For those who actually want a description, use:
    function cc_desc() { return 'Your description here'; }
    function add_filter('constant_contact_form_description','cc_desc');

    You should not need it for long though as the fix to the code for the bug is pretty easy.

  6. jaimetorres
    Member
    Posted 4 years ago #

    So I added the two lines
    Apparently I added them in the wrong place

    the page just returns this error:

    Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting '&' or T_VARIABLE in /home/content/15/5915115/html/wordpress/wp-content/themes/suffusion/functions.php on line 76

    The site is down and I have no way of returning to the website to fix the problem

    what can I do?

    Thanks for your time

  7. jaimetorres
    Member
    Posted 4 years ago #

    is there a way to get back into the source code to fix it?

  8. jamesbenson
    Member
    Posted 4 years ago #

    I'll release a proper fix for this within the next couple of weeks, far too busy at the mo.

    @jaimetorres You will have to FTP into your site and edit the code.
    The code above is invalid, DO NOT USE IT.
    It should probably read (although not tested this)

    function cc_desc() { return ''; }
    add_filter('constant_contact_form_description','cc_desc');

  9. rickrrr
    Member
    Posted 4 years ago #

    @jaimetorres, very sorry about that, I guess I shouldn't post solutions late at night. I copied and pasted that right out of my functions.php, but somehow I butchered it editing out my comment text that was at the end of the first line. I had "//override the sidebar description function" at the end of the first line which wrapped onto the second and I didn't catch the "function" when I deleted the rest.

    Jamesbenson is correct, it should be:

    function cc_desc() { return ''; }
    add_filter('constant_contact_form_description','cc_desc');

    For those who actually want a description, use:
    function cc_desc() { return 'Your description here'; }
    add_filter('constant_contact_form_description','cc_desc');

    Note that this completely overrides all the settings in admin for the description in the plugin, so once jamesbenson fixes the plugin, you'll probably want to remove it.

  10. jaimetorres
    Member
    Posted 4 years ago #

    hey guys
    thanks both for your dedication and time.
    I managed to FTP directly to the file and deleted the "offending" lines.
    Its all good now.

    Again, thanks for taking the time to solve strangers problems~!

    Jaime

  11. jamesbenson
    Member
    Posted 4 years ago #

    No probs, glad you got this sorted.

  12. Zack Katz
    Member
    Posted 4 years ago #

    This issue is fixed in Version 1.1.0.1, just released.

  13. rickrrr
    Member
    Posted 4 years ago #

    @katzwebdesign: Excellent, and thank-you for removing that <br /> too!

Topic Closed

This topic has been closed to new replies.

About this Topic