Plogger Support Forum - Overwrite &lt;title&gt; tag Fri, 29 Mar 2024 06:07:41 +0000 http://www.plogger.org/forum/ Lussumo Vanilla 1.1.10 Overwrite <title> tag http://www.plogger.org/forum/comments.php?DiscussionID=3132&Focus=12472#Comment_12472 http://www.plogger.org/forum/comments.php?DiscussionID=3132&Focus=12472#Comment_12472 Fri, 19 Mar 2010 01:14:34 +0000 hunger Overwrite <title> tag http://www.plogger.org/forum/comments.php?DiscussionID=3132&Focus=12554#Comment_12554 http://www.plogger.org/forum/comments.php?DiscussionID=3132&Focus=12554#Comment_12554 Tue, 30 Mar 2010 01:27:57 +0000 hunger
echo "\t" . '<title>'.'PHOTOGRAPHY'.'</title>';

Let me know if you know of a solution that doesn't involve hacking /plog-includes/.]]>
Overwrite <title> tag http://www.plogger.org/forum/comments.php?DiscussionID=3132&Focus=12613#Comment_12613 http://www.plogger.org/forum/comments.php?DiscussionID=3132&Focus=12613#Comment_12613 Fri, 09 Apr 2010 04:20:41 +0000 kokuda
There is a config variable 'embedded' that, if you set to 1, will prevent the title from being included by the plog-includes code. I think it is supposed to be set by defining PLOGGER_EMBEDDED, but that also turns off mod_rewrite, which you (and I) probably still want.

Take a look around the code that you changed, it should be inside a test of that variable.

So, you can set config['embedded']=1 before calling the_plogger_head() in index.php.

global $config;
$config['embedded'] = 1;
the_plogger_head();

Then you must set the title you want somewhere. You can do that in your theme's head.php. You should also echo the "<meta http-equiv="Content-Type"" that was also disabled.

It is still a bit of a hack, but I prefer changing index.php to plog-functions.php.

Personally I think that the theme should set the title, like how it Wordpress does it. I think the format of the title should be defined by the theme.]]>