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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T00:01:06+00:00 2026-05-23T00:01:06+00:00

I have a tag cloud widget in my sidebar and I also have a

  • 0

I have a tag cloud widget in my sidebar and I also have a search box in my sidebar. I want to take the search box and move it underneath the <h3> in the widget tag cloud, so that it appears before the actual tags.

This is the Jquery I tried. I tried to prepend the search box before class tagcloud (which has the actual tags.

$(document).ready(function() {$('.tagcloud').prepend($('search'));  })

Can you explain to me why it doesn’t work? (Note, I have a few other jquery functions in my document that alter the tag cloud that. Maybe they are interfering? I copied them at the bottom)

This is the tagcloud html

<li class="widget widget_tag_cloud" id="tag_cloud-3">
     <h3>My Stupid Blog</h3>

  <div class=tagcloud">
   {irrelevant tag links }

  </div>

I also have a search box

<li class="widget thesis_widget_search" id="search">  
    {search html}
</li>

Other Jquery functions in my document

 $(function () {
    $('a[class^="tag-link"]').css('fontSize', '1.3em');
    $('a[class^="tag-link"]:odd').css('color', '#A1422F');
    $('a[class^="tag-link"]:even').css('color', '#1E2582');
});


 $(function () {
    $('#s').val('search box');
});
  • 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-23T00:01:07+00:00Added an answer on May 23, 2026 at 12:01 am

    This can work for you.

    $(function() {
        var searchHtml = $("#search").html();
        $("#search").remove();
        $(".tagcloud").before(searchHtml);
    });
    

    Bonus:

    For some extra info, your “other jquery functions” should be changed. You really should remove the $(function() calls. you should only use it once on a page. This function call is really just document.ready monitoring.

    $(function () {
        var searchHtml = $("#search").html();
        $("#search").remove();
        $(".tagcloud").before(searchHtml);
    
        $('a[class^="tag-link"]').css('fontSize', '1.3em');
        $('a[class^="tag-link"]:odd').css('color', '#A1422F');
        $('a[class^="tag-link"]:even').css('color', '#1E2582');
    
        // Not sure what this is, unless you have an element with id="s"
        $('#s').val('search box');
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my tag cloud I have urls that look like this ../search.php?query=cat&select=all ../search.php?query=the cat&select=all
I have a little tag cloud that shows the last 20 searches and I
I have a native Delphi TFrame that emulates Roy Tanck's Cumulus Tag Cloud viewer,
I have a form with two input fields and a tag cloud. I want
If I have a structure like this: <div id=main> <div id=sidebar> <div id=tag-cloud/> </div>
I have an existing webapp and want to add a tag feature so that
I have a Tag cloud that i need to style. Unfortunately it has no
Here's the snippet of html i have: <div id=tag-cloud-widget> <div class=content> <a href=# rel=1
I'm trying to slightly modify the default WordPress tag cloud widget. I don't want
I have a tag cloud that I'm including on nearly all of the views

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.