Support Forum
Before I put my hands into the code and make real damage... how should I do things properly in order to add some text at the bottom of the page of the forum? If I insert anything in the page it is shown at the beginning...
Thanks and good day everybody 😉
Giovanna
My forum (in Italian) is: MsPforum
Well I am not sure yet but I wanted to have some text/images for sure to allow a better google indexing (I have a very sad orange traffic light from the Yoast plugin at the moment!). Then I thought that I may move the chat down below which is a shortcode to a plugin, within another shortcode for the accordion.
As you can see I am not sure, it was a "preventive" question!
My forum (in Italian) is: MsPforum
there is a hook that allows you to do this... something like this in your spFunctions.php file of your sp theme:
add_action('sph_after_template_processing', 'my_page'); function my_page() { echo 'this is what I want to say'; }
Visit Cruise Talk Central and Mr Papa's World
Oh thanks, that works! But if I wanted to add more complex things such as shortcodes and images? Can you point to me some place where I can understand how the "echo" command line works? I can read php and fiddle with code but I am not a php programmer, so I am not too sure what else I can do in that function! There's no hurry to answer, thanks!
My forum (in Italian) is: MsPforum
If you know HTML better than PHP then you can construct HTML instead by closing the php tag and opening it again at he end of the function. Like this:
add_action('sph_after_template_processing', 'my_page'); function my_page() { ?> HTML here... <?php }
that will work. I would quite like to support this a little better though so I am pondering the issue. But that will take some time.
YELLOW
SWORDFISH
|
ohh I knew there was a way 😀 So I managed to get an image and the link to the recipe... me happy! Now I try the shortcode...
My forum (in Italian) is: MsPforum
Ok: shortcode does not work, which I expected, but simple html does. You can check the bottom of my forum page (link in my signature), I managed to put link and image from my blog 😉
My forum (in Italian) is: MsPforum
1 Guest(s)