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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T16:46:58+00:00 2026-06-08T16:46:58+00:00

I am trying to figure out how to change the default layout to 2

  • 0

I am trying to figure out how to change the default layout to 2 columns from 3 columns. I have been able to do it successfully on every page except for search results. I wouldn’t mind changing the default layout to 2 columns as I want it all to be uniform.

Here’s the catch, I am on a hosted solution (I hate it, but hey, I am just the developer). I have no access to the file system or individual files. I haven’t figured out a way to upload and replace any files, so all changes I make have to be done from the back end. I am really hoping this can be done.

  • 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-06-08T16:46:59+00:00Added an answer on June 8, 2026 at 4:46 pm

    Answer is, you can’t. Plain and simple.

    However, you can hack the hell out of it using jQuery and get it to work right. Here is the code I used:

    //Check for 3 col layout.
    if($j('.col3-layout').length>0){
        //swap the 3 col layout for the 2 col layout
        $j('.col3-layout').addClass('col2-left-layout').removeClass('col3-layout');
        //grab all the code in the wapper, and place it in the main
        var html=$j('.col-wrapper').html();
        $j('.main').html(html);
        //If products are shown as a grid, reorder them.  If it is a list, leave it alone.
        if(!$j('.grid').attr('href')){
            //Grab all items in the list, push them into an array, and then remove all the data.
            var items=new Array();
            $j('.products-grid .item').each(function(){
                items.push($j(this).html());
            });
            $j('.products-grid').remove();
            //build your output
            var html='';
            var gridsize=4; //items per row
            for(var i=0;i<items.length;i++){
                if(i%gridsize==0){//start a new row
                    html+='<ul class="products-grid '
                    if(i/gridsize==0)//very first row
                        html+='first ';
                    else if(i==items.length-gridsize)//last row
                        html+='last '
                    if(i/gridsize%2==0)//even class
                        html+='even">';
                    else
                        html+='odd">';//odd class
                    html+='<li class="item first">'+items[i]+"</li>";
                }else if(i%gridsize==gridsize-1){//very item in row
                    html+='<li class="item last">'+items[i]+"</li></ul>";
                }else
                    html+='<li class="item">'+items[i]+"</li>";
            }
            $j('.category-products').html(html);  //populate the data.
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to figure out how to change an embedded web page when the
I am fairly new to Emacs and I have been trying to figure out
As the title reads, I have been trying to figure out how to be
I'm trying to figure out how to change the standard rails scaffolding form so
trying to figure out why this is happening - I have an input text
I'm trying to figure out what CSS I must change to fix this problem:
I'm trying to figure out storage requirements for different storage engines. I have this
I'm trying to figure out how when using the default asp.net forms authentication stuff
I've been trying to figure out a decent way to smoothly animate a frame
I'm using RichFaces 3.3.3 and been trying to figure out how to set the

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.