Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6626387
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T21:53:12+00:00 2026-05-25T21:53:12+00:00

I have some home made blog, and when viewing blog posts I’d like to

  • 0

I have some home made blog, and when viewing blog posts I’d like to change the title tag for adding the post title, so when I use the Twitter’s tweet button, it adds the new button. I tried:

<script type="text/javascript">

 $(document).ready(function() {

 $(this).attr("title", "<?php echo $tagValue["title"]." - YourCloud"; ?>");

});
</script>

And:

 $(document).ready(function() {

 document.title = "<?php echo $tagValue["title"]." - YourCloud"; ?>";

});
</script>

But the Tweet Button still has the title I set up at the start, how can I fix this?

EDIT:
In my index.php I add the title tag, I want to modify it so when you see the source it already appears modified

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T21:53:12+00:00Added an answer on May 25, 2026 at 9:53 pm

    I think you want to set the text of the tweet, because by default the document title is tweeted. Well, you can modify the tweet button code to achieve this. See the href of the anchor element below where I added a ‘text’ parameter.

    <a href="https://twitter.com/share?text=any_text_you_want" class="twitter-share-button">Tweet</a>
    

    More here- https://dev.twitter.com/docs/tweet-button

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We use maven/nexus combo and it works nicely. We have some home made projects/maven
I have this string stored in a variable: IN=bla@some.com;john@home.com Now I would like to
I have developed a site, which has some static pages. Like explore, home, feedback.
I have some UI task which took to long. I have some 'home made'
I'm working on a project that involves some home-made (de-)serialization code, and I have
I have some files across several folders: /home/d/folder1/a.txt /home/d/folder1/b.txt /home/d/folder1/c.mov /home/d/folder2/a.txt /home/d/folder2/d.mov /home/d/folder2/folder3/f.txt How
I have some tables with data: Category CategoryID CategoryName 1 Home 2 Contact 3
I am trying to show some news in the home screen and I have
I'm doing some JAVA coding at home and at work. At home i have
I have some text lines like that : vt_wildshade2^508^508 vt_ailleurs2^1188^1188 ... vt_high2^13652^13652 Is it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.