• Resolved Jane Milburn

    (@jane-milburn)


    Hi, I am using the Twenty Seventeen theme.I have searched this forum and online for answers but cannot find anything that works for me.

    My problem is that when I click on the email link on my Contact page, it opens fine, I send the email but i’m then taken to just a blank page. Is this normal? I would prefer that people emailing me see a thank you message or are redirected to the Home page after sending the email. Is this possible and if so, how can I do this please?

    I am having problems setting up a child theme but this is another issue, so, for the time being any css changes I make will be done in Additional CSS.

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 16 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    I’m not sure I see the issue, what do you mean by blank page? I do see a large blank image but that’s only because this image is being used:
    https://www.plinthism.com/wp-content/uploads/2017/10/Clipboard10-1.jpg

    It’s because you have a target on the mail link which means when someone clicks on it, to open a new browser tab or window:

    <p><a href="mailto:[email protected]" target="_blank" rel="noopener">[email protected]</a></p>

    Remove the target=”_blank” from the line.

    **I didn’t add your email above so you don’t get spammed from here ??

    As for a redirect after submitting email, this won’t work because it’s using an external application. However, I would recommend not using an “email address” link as this is easily picked up by bots and you could potentially see a ton of spam. The contact form should really be enough as it’s more flexible and more secure from that kind of thing. Ayone using the contact form is still technically using email….just in a different way.

    Thread Starter Jane Milburn

    (@jane-milburn)

    Thank you Andrew Nevins and childthemestyles.

    childthemestyles, where do I find the code you found where I need to remove target=”_blank”? Is it in style.css?
    Thank you for your advice regarding not using an email address. I am building the site for my brother and will speak to him soon about this, yes you are right, we do not need it having a contact form.

    You are very welcome. As for the removing of the target, that is not in the style.css but in the page where your contact form is. Open that page and then delete the email link which is now in an H3 tag as I can see.

    cheers,
    Andre

    Thread Starter Jane Milburn

    (@jane-milburn)

    Maybe i’m confused. For the time being I do not want to remove the email link until my brother is okay with that. I have Akismet installed, hopefully that will help with spam until I remove the email link. Could you please tell me where to find target=”_blank”?

    Open the page in the editor where the contact form is and on the editor, click on the “Text” tab of it and you should see it there.

    Thread Starter Jane Milburn

    (@jane-milburn)

    Hi again, sorry, the confusion is that I had done that but this is what it shows –
    <h3>info@[email protected]</h3>

    As you can see it does not say target=”_blank”

    Can you help further please?

    Thread Starter Jane Milburn

    (@jane-milburn)

    I give up, basically when looking at text on the page with the email link, I do not see what you’re seeing, it is the same except it does not show target=”_blank” or rel=”noopener” and does not have <p> around it.

    With the editor on the “Visual” tab, select the my email text and then click the pencil icon to Edit. Then click on the cog icon for Link Options. Look for the setting “Open link in a new tab” and uncheck the box next to it (if it’s checked). Once done, click the “Update” button to save it and close the popup window. Save your page.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    @jane-milburn, You need to use the “code” button when posting on the forums. Highlight the code and press the “code” button once.

    • This reply was modified 7 years, 5 months ago by Andrew Nevins.

    Perhaps this might help with a screenshot of changing the link attributes…select the link in the page for the email:

    Screenshot

    Uncheck the box next to “Open Link in a new tab”.

    Thread Starter Jane Milburn

    (@jane-milburn)

    For some peculiar reason it now seems to have stopped showing a blank page and returning to the Contact page. I honestly was not seeing what you saw and therefore, I could not make any changes. It is strange i’ve only been working on the site for a couple of weeks but have found some strange issues even after f5 refresh and clearing the cache, which have corrected themselves after some time.

    So thank you for now, I appreciate your time and effort. Hopefully I will not have to ask for further help with this, but who knows!

    Thread Starter Jane Milburn

    (@jane-milburn)

    Thanks again childthemestyles but the “Open link in a new tab” was not checked.

    Thank you Andrew Nevins I will use the “code” button in future.

    No worries…sometimes strange things like that happen out of the blue….what is important is that it’s working now.

    Cheers,
    Andre

    Thread Starter Jane Milburn

    (@jane-milburn)

    Hi Andre, it’s still working, fingers crossed ??

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Redirect to Home page after email is sent.’ is closed to new replies.