Custom Tags and the homepage

From Adult Web Scripts Wiki

Jump to: navigation, search

Custom tags won't work on the homepage if you have type=none or at least don't have a webcams niche defined for the home page.

To work round this you should default back to using the old site settings. This code is taken from themes/tpc-red-devil/header.tpl:

{config var=settings module=base scope=global}
{val name=page_title var=page_title}
<title>{if $page_title != ''}{$page_title}{else}{$settings.sitename}{/if}</title>

Similar code will also work for a PHP template.

<?
$site_meta = zestoi_config("base", "global"); 
$page_title = zestoi_val('page_title');
?>
<title><?= $page_title != '' ? $page_title : $site_meta['sitename'] ?></title>

If using one of the original themes that defines $site_meta in functions.php then you don't need to add that code in again. You can also put the $page_title= line in the functions.php file too.