How to customize <title></title>

Post Reply
bluesky0341
Jr. Bludit
Posts: 8
Joined: Tue Jan 02, 2024 3:45 pm

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?
bluesky0341
Jr. Bludit
Posts: 8
Joined: Tue Jan 02, 2024 3:45 pm

could you help?
wjar
Jr. Bludit
Posts: 6
Joined: Fri Dec 16, 2022 6:58 pm
Been thanked: 1 time

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.
bluesky0341
Jr. Bludit
Posts: 8
Joined: Tue Jan 02, 2024 3:45 pm

thanks for reply

but i can not find head.php
bluesky0341
Jr. Bludit
Posts: 8
Joined: Tue Jan 02, 2024 3:45 pm

could you help?
wjar
Jr. Bludit
Posts: 6
Joined: Fri Dec 16, 2022 6:58 pm
Been thanked: 1 time

Maybe your theme has no file named head.php. Please locate in the php subdirectory of your theme the file defining the <head>-section.
bluesky0341
Jr. Bludit
Posts: 8
Joined: Tue Jan 02, 2024 3:45 pm

https://aluminaballs.cn/

i use your theme
bluesky0341
Jr. Bludit
Posts: 8
Joined: Tue Jan 02, 2024 3:45 pm

thank you very much
it does work

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