- This topic has 7 replies, 3 voices, and was last updated 10 years, 9 months ago by .
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.
These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.
I'm using the metro theme over at http://injuryfree.me
How do I add the enews extended sign up form after my page content?
I've got it to work for my posts, but not after pages.
It looks like you got it working.
Do you still need help?
That's a plugin I'm using, not the enews extended widget.
If there's a way I could get the enews extended widget to work there instead then I'd like to...so yeah, please, any help would be awesome.
Yeah, had a look there thanks Brandon but I couldn't get it to work on the pages. Posts are fine, but not pages.
I haven't tested it, but to get it on pages, it only requires a small tweak. From Brian's instructions, the line <code>is_singular( 'post' )</code>, change to <code>is_singular( array( 'post', 'page' ) )</code>.
I edited his gist to do that here: https://gist.github.com/kraftbj/5094618#file-functions-php
Backup your functions.php and have FTP access. I don't have time to test that out, but it should work just fine per the codex.
Also, if you want this on ALL post type pages (posts, pages and any custom post types you may have), you can just use is_singular() and not specify a specific post type.
[NOTE: DO NOT COPY STRAIGHT FROM THE FORUM POST. Use the gist instead. If you just copy/paste, the single quotes will goof everything up since they're being rendered as fancy quotes]
Thanks for that pal.
I'll have a play about with it and see how I get on. Many thanks!
© 2023 WPEngine, Inc.