Forums

adding the class? (11 posts)

  1. screenshot
    Member
    Posted 1 year ago #

    Can you be a little more specific on the instructions for adding the contact link to the theme? I'm using WordPress 2.3.2 and the default theme. I just want a link or something that opens the form.

  2. emartin24
    Member
    Posted 1 year ago #

    If you already have a contact link in your theme, all you need to do is add class="smcf_link". Example:
    <a href="/contact" class="smcf_link">Contact</a>

    If you want the plugin to automatically add a contact link for you, you can just add the following to one of the files, sidebar.php, for example. Example:

    <?php if () : ?>
         <?php smcf() ?>
    <?php endif; ?>
  3. zotium
    Member
    Posted 1 year ago #

    Hi,

    I tried to put the plugin but it doesn't pop up when I click it.

    Tried both methods A and B. Can you help me check to see what's wrong? at http://ongster.com

    thanks!

  4. emartin24
    Member
    Posted 1 year ago #

    It looks like all of the smcf files are returning a 404 - not found.

    Example:
    http://www.ongster.com/wp/wp-content/plugins/smcf/js/jquery.js

  5. whooami
    Member
    Posted 1 year ago #

    http://www.ongster.com/wp/wp-content/plugins/

    explains any 404s related to that.

  6. emartin24
    Member
    Posted 1 year ago #

    Indeed =)

    @zotium - you need to rename the folder to smcf.

  7. asony999
    Member
    Posted 1 year ago #

    I have installed the pluign in wordpress test blog on my pc but it is not working. I have read readme.txt several times and added code as suggested but it is not working.

  8. emartin24
    Member
    Posted 1 year ago #

    Which part is not working?

    If the dialog just doesn't show:
    1) View the source of your page and make sure that the jquery and simplemodal js files are referenced and can be accessed.
    2) Make sure the link has class="smcf_link"

    If the mail is not being sent/received, see:
    http://wordpress.org/support/topic/150831?replies=3

    -Eric

  9. mrhandley
    Member
    Posted 1 year ago #

    I tried to add it to a testsite of mine.

    I tried both the php if and the href variant, with no success.
    When I click the link, all I get is a lightbox style shade over my site, but no contact form. Am I missing something obvious or doing something wrong?

    /Mattias

  10. emartin24
    Member
    Posted 1 year ago #

    Mattias - this post should help. If not, let me know.

  11. mrhandley
    Member
    Posted 1 year ago #

    Sweet, looks like he had the exact same problem as me. Thanks a bunch, I´ll look in too it.

    It took me about a minute to read the instructions in your comments:

    "If you have a footer.php page, add the following before the </body> tag:

    <?php wp_footer(); ?>"

    I then added the footer call and it works like a charm.

    Thanks again!
    /Mattias

Topic Closed

This topic has been closed to new replies.

About this Topic