Page 1 of 1

How to customize <title></title>

Posted: Tue Jan 02, 2024 3:48 pm
by bluesky0341
for example,
if my article title is ceramic cup,

then click view source code for this article

<title>ceramic cup</title>
above is not good for google seo

i need <title>ceramic cup, cermic mug</title>,this is good for google seo

how can i do?

Re: How to customize <title></title>

Posted: Sat Jan 06, 2024 5:22 pm
by bluesky0341
could you help?

Re: How to customize <title></title>

Posted: Sun Jan 07, 2024 8:43 am
by wjar
One possible way would be using a custom field:
https://docs.bludit.com/en/content/cust ... ds#sidebar

You can replace

Code: Select all

<?php echo Theme::metaTags('title'); ?>
with

Code: Select all

<?php echo '<title>' . $page->custom('NAME-OF-CUSTOM-FIELD') . '</title>'; ?>
in the file head.php of your theme.

Re: How to customize <title></title>

Posted: Mon Jan 08, 2024 10:55 am
by bluesky0341
thanks for reply

but i can not find head.php

Re: How to customize <title></title>

Posted: Mon Jan 08, 2024 4:12 pm
by bluesky0341
could you help?

Re: How to customize <title></title>

Posted: Mon Jan 08, 2024 7:01 pm
by wjar
Maybe your theme has no file named head.php. Please locate in the php subdirectory of your theme the file defining the <head>-section.

Re: How to customize <title></title>

Posted: Tue Jan 09, 2024 6:12 am
by bluesky0341
https://aluminaballs.cn/

i use your theme

Re: How to customize <title></title>

Posted: Tue Jan 09, 2024 6:42 am
by bluesky0341
thank you very much
it does work

bludit is very good,it is power,Custom fields is very power