Pages (2):    1 2
Member
Member
Ewgeniy   12-01-2024, 18:46
#21

Oh, sorry, I thought the "html_meta_tags plugin" only included the regular "

Administrator
Administrator
acrylian   12-01-2024, 18:53
#22

OpenGraph tags are justs meta tags as well ;-)

A plugin for that "theme_head" filter is relatively simple, depending on your knowledge. You find a general demo plugin on our Github: https://github.com/zenphoto/demo-plugin

Take that as an example. Instead of the demo functions use something like this:

zp_register_filter('theme_head', 'yourplugin:cript');

class yourplugin {

   static function script() {
       echo "Your script code here";
   }
}
Member
Member
Ewgeniy   12-01-2024, 19:29
#23

Although I have been in IT since the appearance of the IBM PC XT in the USSR. )) But programming is not my thing, although sometimes I edited the code when there was no other choice. And creating a plugin is beyond me. ) I'll be satisfied for now with the presence of the code on the image page. )

Administrator
Administrator
acrylian   12-01-2024, 19:40
#24

Well, that's as long as I am (I started with the C64). Take a look at the demo plugin which is fully commented and with the above example you should get along then;-)

Member
Member
Ewgeniy   12-01-2024, 19:42
#25

Fine. Thank you.

Pages (2):    1 2
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.