TEsterss
i am using blog xtgem. i want change title of entry in blog by title tag. Title of my entry is "old title". I use title tag <title>new title</title> to rename title of entry. output: "old title - new title".
How to remove "old title - " in "old title - new title"?
Graham
TEsterss The title of the blog post page uses the title of the blog post plus whatever you set the title to be in the page options
You could change it with javascript but the change would only be visual as the source will still show the original
<script type="text/javascript>
document.getElementsByTagName("title")[0].innerText='What ever';
</script>
Copy code
Other than that I don't think you can change it
TEsterss
can googlebot read that code?
TEsterss
i used to <script type="text/javascript">document.title='what ever';</script> to rewrite title of entry, but when i click button share facebook, title of entry is empty. it only show image of entry
Graham
TEsterss I can not see any title tag at all in the pages source code so that is probably facebooks problem
As for the google bot I do not know