WordPress.org

Ready to get started?Download WordPress

Forums

Contact page (11 posts)

  1. carlosmiller
    Member
    Posted 6 years ago #

    What if I just want to create a contact page where I can place the link on my header?

    I've done both codes and neither work.

    Here is my blog. http://www.carlosmiller.com. I would like to have "contact" above the header photo with the other links.

    http://wordpress.org/extend/plugins/simplemodal-contact-form-smcf/

  2. obscure
    Member
    Posted 6 years ago #

    You already have links on your header and you want to add one more?
    Go into the theme files and find those links and add a new one.

  3. Eric Martin
    Member
    Posted 6 years ago #

    Hello Carlos,

    You should be able to just add the Contact link to your theme. Just make sure to add the smcf_link class to the code:

    <a href="/contact" class="smcf_link">Contact</a>

    Also, it looks like you are using an older version of jQuery. You'll probably need to include the version that comes with SMCF for the effects to work correctly.

  4. carlosmiller
    Member
    Posted 6 years ago #

    emartin24,

    I tried that, but it didn't really work. When you say I have an older version of JQuery, does that mean I have to upgrade the WordPress template?

    I know I eventually have to do that but I've been avoiding it because it sounds like a real pain in the ass for someone who is not real good at these technical things.

  5. Eric Martin
    Member
    Posted 6 years ago #

    "I tried that, but it didn't really work."

    - What part of it didn't work?

    "When you say I have an older version of JQuery, does that mean I have to upgrade the WordPress template?"

    - No, it just means that you need to make sure to include the version of jQuery that comes with SMCF, by selecting jQuery on the options page.

  6. carlosmiller
    Member
    Posted 6 years ago #

    emartin,

    I need to know what coding, if any, that I need to write in the actual contact page to make this work because that is where my issue lies.

  7. Eric Martin
    Member
    Posted 6 years ago #

    I think the intent is that the contact link itself would trigger the contact form and not go to a contact page.

    You might want to have a contact page for non-javascript users, but the contact link itself (in your menu) would open SMCF. To make that happen, you just need to add class="smcf_link" to the contact link.

  8. carlosmiller
    Member
    Posted 6 years ago #

    If I delete the contact page and just try to go with the link itself, I get the following, extremely annoying page:

    Easy, tiger. This is a 404 page.

    You are totally in the wrong place. Do not pass GO; do not collect $200.

    Instead, try one of the following:

    * Hit the "back" button on your browser.
    * Head on over to the front page.
    * Try searching using the form in the sidebar.
    * Click on a link in the sidebar.
    * Use the navigation menu at the top of the page.
    * Punt.

  9. Eric Martin
    Member
    Posted 6 years ago #

    You don't need to delete the contact page. You just need to make sure that the link to the contact page looks something like:

    <a href="/contact" class="smcf_link">Contact</a>

    If the plugin is activated, it should work.

  10. nyfamily
    Member
    Posted 6 years ago #

    I've activated the plug in and put the code in and the contact form is not there. This is the code I used. I'm really new to this and still learning so bare with me. I put the code on the manage page, changed from visual to code and put the code in there, is that right?

    <?php if (function_exists('smcf')) : ?>
    <?php smcf(); ?>
    <?php endif; ?>

    Thanks

  11. Eric Martin
    Member
    Posted 6 years ago #

    If you use that function, all you should see is a "Contact" link wherever you placed the code.

    Do you see that?

    Do you have a link I can view?

Topic Closed

This topic has been closed to new replies.

About this Topic