But, Custom Code isn’t working in Softr Custom Code (Footer, Custom code block, etc…)
Here is the code below,
It works well in debugger(F12) Console,
but, not working in Softr Custom code only.
Thanks in advance : )
[Changed Page title by Debugger Console(F12)]
{Custom Code below}
var content_title = document.querySelector (“#list-back > section > div > div > div > div > div > div > div:nth-child(3) > div > div > div > div > h3”).textContent;
var content_title = document.querySelector (“#list-back > section > div > div > div > div > div > div > div:nth-child(3) > div > div > div > div > h3”).textContent;
<script>
window.onload = function() {
var content_title = $('#list-back > section > div > div > div > div > div > div > div:nth-child(3) > div > div > div > div > h3').text();
document.title = content_title;
};
</script>
Was this ever figured out? I’d love to be able to do this for my database site, but I have no idea what I’m doing with it.
Also, how would one go about customising this? For example, I have a table called Members, and the member’s name is what I want the page title to be on the list details pages. A specific member example is this page, where the name (Nakazawa Yuuko) would automatically become the page title.
I’d rather not do it manually, as I have almost 290 member records alone, along with everything else in the database!
(Apologies if this is a simple fix and I’m overlooking it. I do have a SEO:Title field in the Members table, but I can’t seem to get that to work, either…)