Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By riazuddin on
Where should I write the code on the above mention link ?
any idea
Comments
=-=
goto administer -> blocks and click on the add block tab
before deploying any php, test on a page content type first with the php input format to insure that the snippet still works in the current version of drupal.l
Create a custom block and set the input filter to php.
"Create a custom block and set the input filter to php."
So, what you have to do is (I won't write the exactly name of each menu):
- go to the administration
- administer blocks
- add a new block of type custom block
- set the input filter to php
- copy & paste the desired php code
- save the block
- go to the configuration of the theme
- configure the new block to show up in the desired region/sidebar
got it?