Category: Theme Customizations

Common requests about theme modifications

  • How to add classic ads (banners) manually

    Sometimes a restrictive ‘mod_security’ configuration prevents you from creating banners in PHP Melody.

    That’s when you need to roll up your sleeves and add banners the old fashion way (or change hosting providers).

    Let’s start by adding banners in the already defined ad zones (e.g. header, floating ads, video page, etc.).

    Here are all the template files which already have defined ‘ad zones’.

    /templates/default/article-read.tpl:
    /templates/default/footer.tpl:
    /templates/default/header.tpl:
    /templates/default/index.tpl:
    /templates/default/video-watch.tpl:

    In any of these files you will find one or more instances of the following code snippet (where X is a number):

    {$ad_X}

    To add your banners, replace all instances of {$ad_X} with your own HTML code.

    To get a complete list of existing ‘ad zones’ log into your PHP Melody back-end and browse to the following page, as illustrated below:

    screenshot-demo phpmelody com 2014-11-25 12-23-28

    If you still need help with this, you can always get in touch with our customer support.

  • How to change the default PHP Melody favicon

    How to change the default PHP Melody favicon

    The default PHP Melody favicon is stored in the /templates/[current theme]/img/ folder (e.g. https://demo.phpmelody.com/templates/default/img/favicon.ico).

    If you don’t have a favicon file for your site yet, you can create one from your logo by visiting our favorite online favicon generator.

    Once you’re satisfied with the results, save your freshly generated favicon.ico file to your computer. Then, upload it to your PHP Melody installation, replacing the existing file from your  /templates/[current theme]/img/ folder.

    Job well done.

    Note: Starting with PHP Melody v2.3 the favicon.ico file was moved to the /templates/[current theme]/img/ folder. Older PHP Melody versions store favicon.ico in the /uploads/ folder.