I will create some examples on how to do just that.
For this example I created a very basic plugin.
1: Create an empty plugin (many example on how to do that are available. I created one called “subscribe-to-category-notification”. Make sure it is activated
2: Add the following to the PHP code in the file just created under item 1:
/**
* Example for adding html stuff just before the (partial) contents of the posts
*/
function my_stc_before_message_content( $post_id ){
?>add html text stuff just before the (partial)contents<?php
}
add_action( ‘stc_before_message_content’, ‘my_stc_before_message_content’, 10, 2 );
3: It is all about adding somewhere on your site this function. I just used the plugin example as an easy good isolated places to just do that. There are many other place on your site where you can do that.
-
This reply was modified 5 years, 7 months ago by
vandestouwe.
I’m just curious did this helped at all? Or do you need some more help?
Hi,
I was not quite sure where the code should go.
I did create a new empty plugin – and also tried using Code Snippets.
In the end I have ended up using a different approach – as I am working with a Membership site.
I will probably look back and give it another go..
Thanks so much for your help.
Cheers
When using the created plugin was the plugin listed as a plugin and did you activate it?
stc-can handle membership sites very well
-
This reply was modified 5 years, 6 months ago by
vandestouwe.