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 6661167
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T02:14:45+00:00 2026-05-26T02:14:45+00:00

I have a wordpress theme in which i have to create a page that

  • 0

I have a wordpress theme in which i have to create a page that has a movie that goes loop.
it has 3 menu points which change the div text without reloading the page.

So far no problem.

<a href="javscript:void(0);" onclick="getdata('text.php','content2');">Click here – put it in content box 2</a>

But when im on a different page and i click for example the second link, it should go to the video page and change the text to the second one.

How can i do this?

Is there a way to do that with?

url/wordpressname/#1
  • 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-26T02:14:46+00:00Added an answer on May 26, 2026 at 2:14 am

    Found a Solution: i found a solution here: http://www.deluxeblogtips.com/2010/05/how-to-ajaxify-wordpress-theme.html

    which i changed to fit my needs:

    jQuery(document).ready(function($) {
        var $mainContent = $("#text"),
            siteUrl = "http://" + top.location.host.toString(),
            url = '';
    
        $(document).delegate("a[href^='"+siteUrl+"']:not([href*=/wp-admin/]):not([href*=/wp-login.php]):not([href$=/feed/])", "click", function() {
            //location.hash = this.pathname;
            //return false;
        }); 
    
        $("#searchform").submit(function(e) {
            location.hash = '?s=' + $("#s").val();
            e.preventDefault();
        }); 
    
        $(window).bind('hashchange', function(){
            url = window.location.hash.substring(1); 
    
            if (!url) {
                return;
            } 
    
    
            if (url=="1") {
                $mainContent.html('<p>Text1</>');
            } 
    
            if (url=="2") {
                $mainContent.html('<p>Text2</>');
            } 
    
            if (url=="3") {
                $mainContent.html('<p>Text3</>');
            } 
    
            if (url=="4") {
                $mainContent.html('<p>Text4</>');
            } 
    
    
           // url = url + "#content"; 
    
            //$mainContent.animate({opacity: "0.1"}).html('<p>Please wait...</>').load(url, function() {
                //$mainContent.animate({opacity: "1"});
            //});
        });
    
        $(window).trigger('hashchange');
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a wordpress theme that I like to duplicate. To make things easier
I have a Wordpress theme that uses MooTools and jQuery. I use jQuery noConflict
I have a WordPress site (2.6.2) in which I have set the Home page
I am trying to create dropdown menu for Wordpress theme and having some silly
I have a Wordpress site which has post ratings stored in the wp_ratings table,
I have a wordpress blog. I made a custom page-template that allows users to
I would like to create a fully functional page within my WordPress application (which
I am modifying a wordpress theme completely, and have run into one very simple
I'm struggling with wordpress templates. In one of my theme templates I have the
I am writing a wordpress theme, and have run into a fairly basic problem.

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.