• I’m trying to add a link to my header link bar. I looked up how to code the link and tried it. 400 server error each time, in Safari on iPad. I didn’t check on Windows’ laptop.

    I see no “wrong” characters but would appreciate some coding help

    <!-- <?php wp_list_pages('sort_column=menu_order&depth=1&title_li=');?>
    -->
    <ul>
     	<li class="page_item"><a title="Contact Me" href="[xxxxxxx-form id="647" title="Contact Me"]">Contact Me<a></li>
    </ul>

    I haven’t coded in ten years due to illness. I used the plugin’s code and the rest was just a copy/paste job.

    Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • You can’t use a shortcode as a link target, you need to use a url. Why can’t you just use the menu editor to add the link you want?

    Thread Starter SickSquirrelTwo

    (@sicksquirreltwo)

    This was done in the editor.

    So how do I make the link work? Plugin says to just copy code. Will href=" http://www.domainname.com/xxxxxxx-form id=blah blah">Contact Me</a> be the right syntax?

    I drop the [] brackets and first title=?

    Thank you

    Are you doing this on a template or in pasting this in the content via the editor? The shortcode may work in the editor, but not in the template. Even in the editor, it will probably only work outside a link. Try doing this instead: paste the shortcode on a new page, then add a link to the new page in the menu.

    • This reply was modified 7 years, 1 month ago by csloisel.
    • This reply was modified 7 years, 1 month ago by csloisel.
    • This reply was modified 7 years, 1 month ago by csloisel.
    Thread Starter SickSquirrelTwo

    (@sicksquirreltwo)

    Thank you. I know what you’re saying but want to be sure. I create an HTML page like, “Want to email me? I love email! Just (enter my code above) click here to send me private email. I use the contact form so email-ripping bots don’t get my private email address

    The memory loss frustrates me. This was so simple but HTML is foreign to me now. I used to hand-code entire websites with bells and whistles.

    Thank you again. Using the Editor is new to me.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Coding Causing 400 Server Error’ is closed to new replies.