WordPress.org

Ready to get started?Download WordPress

Forums

WordPress-to-lead for Salesforce CRM
[resolved] CSS for sidebar is used even if shortcode not in side (10 posts)

  1. TrolandB
    Member
    Posted 2 years ago #

    How to resolve this?

    I am using the shortcode both in page content and in the sidebar, however the form is class = "w2llead sidebar" in both cases.

    http://wordpress.org/extend/plugins/salesforce-wordpress-to-lead/

  2. rcvane
    Member
    Posted 2 years ago #

    I'm having the same issue...

  3. powerbandgrphx
    Member
    Posted 2 years ago #

    Same issue here. Any solutions yet?

  4. rcvane
    Member
    Posted 2 years ago #

    Nope, I never did resolve this. :(

  5. gazintoon
    Member
    Posted 2 years ago #

    Hi, I am having this issue too.

    did anyone manage to get a resolution or feedback from the developers?

  6. brettporter
    Member
    Posted 2 years ago #

    You can correct it by altering the following in the plugin:

    --- a/wp-content/plugins/salesforce-wordpress-to-lead/salesforce.php
    +++ b/wp-content/plugins/salesforce-wordpress-to-lead/salesforce.php
    @@ -801,7 +801,7 @@ function salesforce_form_shortcode($atts) {
    
            extract( shortcode_atts( array(
                    'form' => '1',
    -               'sidebar' => 'false',
    +               'sidebar' => false,
            ), $atts ) );
    
            $form = (int) $form;

    Alternatively, I believe you can add sidebar="false" to the shortcode.

  7. gazintoon
    Member
    Posted 2 years ago #

    thanks Brett, I am not sure where to put this? I have looked but no joy. I am not a programmer but can cut and paste. Do you have the full code you can send and I can just overwrite the old with the new maybe?

  8. brettporter
    Member
    Posted 2 years ago #

    The patch format just says to remove the line indicated by the '-' and replace it with the line marked with the '+'.

    That is, search for 'false' in the salesforce.php (including quotes), and remove the quotes around it. The surrounding text should look the same as above.

  9. Nick Ciske
    Member
    Plugin Author

    Posted 2 years ago #

    Added to the fix list for the next version.

    Thanks for the patch!

  10. Nick Ciske
    Member
    Plugin Author

    Posted 1 year ago #

    Fixed in 2.0.1

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic