Lead form capture widget appearing on a single page only

Discussion in 'Infoway WordPress Theme' started by aarliaud, Aug 29, 2014.

Thread Status:
Not open for further replies.
  1. aarliaud

    aarliaud Member

    Joined:
    Oct 28, 2013
    Messages:
    30
    Likes Received:
    0
    Hello,

    I would like to make appear the lead form capture widget only on one particular page of the web site (and this is not the home page).
    Furthemore, I would like to redirect to another page when completing the form. I saw in a previous thread that there was a similar demand to redirect to a "thank you" page, but the final solution is not given.

    Thanks in advance for your feedback,
    Best Regards,
     
  2. Yogesh

    Yogesh Guest

    Joined:
    Aug 8, 2014
    Messages:
    2,052
    Likes Received:
    41
    Hello,

    The lead capture form is coming from widget. If you don't use any widgets in home page then lead capture form will show in home page.
    Use other widgets in home page and use lead capture form widgets on that page where you want to show this form.


    Thanks & Regards
    Yogesh Bhade
     
  3. aarliaud

    aarliaud Member

    Joined:
    Oct 28, 2013
    Messages:
    30
    Likes Received:
    0
    Hello,
    Thanks for your feedback. Actually, I have several pages (e.g. /partners, /documents) using the "Primary widget area" / "Secondary widget area" template. I would like to have only the lead capture form widget appears on the /Documents page.
    Then, I would like to redirect to another page when completing the form, should I modify for this "infowway-front.php" like in the thread "http://www.inkthemes.com/community/threads/lead-capture-send-people-to-thank-you-page.6885/" ?
    Thanks in advance,
    Best Regards,
     
  4. PankajK

    PankajK Support Staff

    Joined:
    Aug 8, 2014
    Messages:
    93
    Likes Received:
    5
    Hi,
    To redirect to another page you need to edit lead_class.php
    Use 'WP Editor' Plugin to edit the theme files.
    Go to folder functions >> lead_form >> leads_class.php
    Click on leads_class.php
    Go to line no. 148
    Add the following code just below that line.
    PHP:
    wp_redirect'http://www.example.com'301 );
    2014-09-04_13h38_48.png

    Change your desired url.

    To show the Lead Capture form on a particular page you need to register a new widget area for that page, then place the Lead capture widget on the new widget area..
    Thanks You
     
  5. aarliaud

    aarliaud Member

    Joined:
    Oct 28, 2013
    Messages:
    30
    Likes Received:
    0
    Hello,
    Thank you very much for your feedback. I installed the "WP Editor" plugin and edit the leads_class.php file with success.
    In order to show the lead Capture form on a specific page, I used the "Dynamic widget" plugin you recommended in the following thread: http://www.inkthemes.com/community/threads/leads-capture-infoway-wordpress-theme.5065/#post-18613 rather
    than the process for "register a new widget area" which seems to me too complex for the purpose.
    Thanks!
    Best Regards,
     
Thread Status:
Not open for further replies.

Share This Page