The Most Valuable Content Selector helps Grow’s script place the Most Valuable Content Subscribe Form.
Without the custom selector, your Most Valuable Content Subscribe Form is specifically looking for Create, Tasty, and WP Recipe Maker recipe and how-to cards to know where to position itself in your posts.
Defining your Most Valuable Content Selector allows you to choose a custom spot in your posts to display the Most Valuable Content Subscribe Form.
This is a good option for sites that are not utilizing recipe or how-to cards, or for sites that might be using a recipe or how-to card that is not Create, Tasty, or WP Recipe Maker.
How to Find the Most Valuable Content Selector
Step 1: Begin by going to one of your posts and inspect the post content in the area you’d like to place your Most Valuable Content Subscribe form in by using your browser’s built-in HTML inspector tool.
(We are using Chrome’s DevTools for this example).
Start the process by highlighting the content in the area you’d like to place the Most Valuable Content Subscribe form:
Step 2: Once you inspect the highlighted content, notice the corresponding HTML element in the inspector tool, which in this case is a <div> tag. In many cases you’ll see that <p> tag, but the type of HTML tag you see may vary!
Step 3: Notice the surrounding elements that make up your post content. Each element here is considered a “child” element of a larger “parent” container that holds all your post content. In this case, the <div> tag is our parent container, though it’s a child element of the entire post content area.
A parent container selector we can use from the example screenshot above is the class .meta-bottom
Step 4: Now that you’ve found a parent container selector, you can add it to the Most Valuable Content Selector field under Subscribe Settings > Most Valuable Content Subscribe Form:
Don’t forget to click Save Changes at the bottom right of the Subscribe Settings page!
That’s it! We’ve found a Most Valuable Content Selector to tell Grow where to place our Most Valuable Content Subscribe form in each post.
Important Notes
- Make sure your Most Valuable Content Selector is unique and that there is only one instance of the selector in your posts. This will ensure your Most Valuable Content Subscribe Form appears in the exact spot you’d like.
- Not all content selectors are created the same. Your site’s underlying HTML may look a bit different.
- A good rule of thumb is finding the “parent” container of your content and working to find the element selector from there. As long as Grow “sees” your content, it should be able to work its magic from there.
- For the Most Valuable Content Selector specifically, it may be worth creating a custom content selector in your post template.
If you’re still having trouble defining your Most Valuable Content Selector, we recommend reaching out to your developer for further assistance. Certain custom themes can be a bit tricky in this area, so recruiting backup can be very helpful!