İn qa-theme-base
i added this code
$pagetitle=strlen($this->request) ? strip_tags(@$this->content['title']) : ''; if (($pagetitle == "1.category name")) $this->output('<strong>1.ads link or code</strong>'); if (($pagetitle == "2category name")) $this->output('<strong>2.ads link or code</strong>'); if (($pagetitle == "3category name")) $this->output('<strong>3.ads link or code</strong>');
But erorr. How can i do it?
on the other hand;
( $pagetitle=strlen($this->request) ? strip_tags(@$this->content['title']) : ''; ) in place of : URLs to make focused?
I'm not sure if what you're trying is the proper way to do it, but your last if() statement is missing a closing parentheses.
Yours:
if (($pagetitle == "3category name") $this->output('<strong>3.ads link or code</strong>');
What it should be:
if (($pagetitle == "3category name")) $this->output('<strong>3.ads link or code</strong>');
function head_title() { $pagetitle=strlen($this->request) ? strip_tags(@$this->content['title']) : ''; $headtitle=(strlen($pagetitle) ? ($pagetitle.' - ') : '').$this->content['site_title']; if (($headtitle == "Game")) { $this->output('<TITLE>Game Server, Ads</TITLE>'); } else { $this->output('<TITLE>'.$headtitle.'</TITLE>'); } }
It worked for Category page title BUT I could not figure category ads...We're missing a little something.
Welcome to the Q&A site for Question2Answer.
If you have a question about Q2A, please ask here, in English.
To report a bug, please create a new issue on Github or ask a question here with the bug tag.
If you just want to try Q2A, please use the demo site.