34 posts
  • Has been part of the Envato Community for over 6 years
  • Has sold $100+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 more
ChordsofLife says

I have an entire site on index.php that changes content via jQuery. The order goes like this:

title, navigation, div a, div b, div c

Logically, I hide what I don’t need and show what I do. My issue is that I want to be able to change the title (i.e specify the “page”). How would I go about doing that? Thanks.

380 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 1+ members
  • Has sold $125,000+ on Envato Market
  • Has collected 10+ items on Envato Market
+3 more
celtathemes says

You might search for a jQuery plugin. I do not know exactly what you want, Tabs or Slides maybe.

76 posts
  • Has been part of the Envato Community for over 5 years
  • Has sold $1,000+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 more
duane_ashworth says

when you change the div thats shown also alter the title tag.

$('a').click(function(){ show your div $('title').html('page title'); });

this should work , look into it in the jquery docs , you should be able to work it out from there

78 posts
  • Has been part of the Envato Community for over 5 years
  • Located in Australia
  • Has been a beta tester for an Envato feature
  • Has collected 1+ items on Envato Market
+1 more
fredwu says

If your title tag is <h2 id="title">Title of the Page</h2>, then:

$("h2#title").text("New Title")

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by