Hi all!
Still in my first steps in Kirby, I successfully installed the Meta Tags Plugin by Pedro Borges. In the header.php snippet, I included <?php echo $page->metaTags() ?> like suggested in the documentation.
Whatever I include in /site/config.php, I get only the default og meta tags. Could someone show me an example of the /site/config.php where more than the og tags are enabled, e.g. twitter cards?
Here is my config.php - what do I wrong?
Just for some background information, because this is important to understand (and is nothing Kirby specific): A PHP return statement stops the execution of the current script/function and returns the control to the calling script. Therefore, multiple successive return statements without conditions in the config/or any other script have no effect at all.
thanks much – there’s still a lot to learn for me. I come from the content development/UX/marketing side, and until now mostly worked with WP although I’m tired of WPs shortcoming, so I try Kirby for my business website
It really depends what you want - as a hobbyist, BBEdit will do just fine, but its harder to trace issues because its not aware of the bigger picture, how all the PHP files hang together.
That is very true, PHPStorm really helps you write better code, but the price tag is probably a bit too high for non-professional use.
Before I switched to PHPStorm is used VS Code with PHP extensions, which worked well enough, but of course doesn’t give you the same powers unless you go for a paid add-on.
I have never used BBEdit, but if it comes with PHP syntax checking natively or via an add-one, you will be fine.
I would hardly give up BBEdit … reliable since 20+ years. Must check if there’s a PHP syntax checker available, though.
Happy about your pro tips, thank you!
Ill be switching to OniVim2 when they finally put a Beta out (I backed it over a year ago… its been a long road). Its already blinding fast (unlike Atom which can be like typying through treacle at times)
Itll be compatable with VSCode extenstions, so in theory you can turn it into a PHP IDE with the right extensions.
Dear all,
since I did all the changes in the config.php that you have suggested, the e-mail form isn’t working anymore. I can’t see a syntax error or typo. Do you see one?
The config looks ok, apart from the missing <?php tag at the beginning of the file but since you are not getting text output on the page, I assume it is present?
Hm, there are no syntax errors in the file. Do you get any error messages? Does $kirby->email() return true? Maybe the mail doesn’t get through do to some blacklisting issues? Is that a mailing service you use?