I have a page outside of my standard Wordpress site and I want to use my header and footer on it so it looks like it's part of my site. In my footer, I have a CF7 form that I'm trying to replicate. However, in the action, it says /#wpcf7-f1-t1-o1 however I'm not sure where that is in the plugins folder. Anybody know? Or is there an alternate action I can put in there?
|
|
|||
|
|
|
That action means "post the form back to the website root". Your website root is the very 'top level' of your domain, for example The hash indicates the point in the document to jump to - in this case, I'm betting the ID of the form is You shouldn't need to alter this. Even though the form is on a page outside of WordPress, when the user clicks submit, they'll get sent back to your homepage where the form can be handled. |
|||||
|
|
A possible replacement for that action would be the $_SERVER['REQUEST_URI'] variable. This basically guarantees a post-back to the current page. Just put it right in front of the /# in the action attribute.
Otherwise, what #wpcf7-f1-t1-o1 is referring to is just the ID of an element on the page to act as an anchor, so when the page loads, it pops right down to that element. |
|||
|
|
