*

bkfly1

  • **
  • 24 posts
Reorder Page Elements
« on: June 12, 2022, 03:14:27 PM »
I created a page using the Sigma theme and would like to move the "All Categories" section to the top of the page, and remove the text "All Categories".  Can someone point me in the right direction as to how to accomplish this?

*

MB Themes

Re: Reorder Page Elements
« Reply #1 on: June 13, 2022, 07:38:16 AM »
You must edit main.php and move it, no other way.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

bkfly1

  • **
  • 24 posts
Re: Reorder Page Elements
« Reply #2 on: June 21, 2022, 04:13:44 PM »
OK, I think you're referring to the main.php in this path - /public_html/OSClass/oc-content/themes/sigma

Can you identify the section of code that needs to be moved in order for "All Categories" to appear at the top of the page?

*

MB Themes

Re: Reorder Page Elements
« Reply #3 on: June 30, 2022, 09:20:17 AM »
@bkfly1
This is the block.
Code: [Select]
<?php osc_goto_first_category(); ?>
<div id="home-cats">
  <h2><?php _e('All categories''sigma'); ?></h2>

  <div class="wrap">
    <?php while(osc_has_categories()) { ?>
      <a href="<?php echo osc_search_category_url(); ?>">
        <div class="icon" <?php if(osc_category_color() <> '') { ?>style="color:<?php echo osc_category_color(); ?>;"<?php ?>>
          <i class="<?php echo (osc_category_icon() <> '' osc_category_icon() : 'far fa-share-square'); ?>"></i>
        </div>

        <strong><?php echo osc_category_name(); ?></strong>
      </a>
     

    <?php ?>
  </div>
</div>
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

bkfly1

  • **
  • 24 posts
Re: Reorder Page Elements
« Reply #4 on: September 15, 2022, 05:49:09 AM »
I have that section at the top of my main.php file, but the categories still appear at the bottom of the page beneath the "latest Listings" section.  Any other ideas?

*

MB Themes

Re: Reorder Page Elements
« Reply #5 on: September 16, 2022, 02:17:31 PM »
I think that in Sigma theme, in same way like bender, latest listings are defined in functions.php or header.php that can make harder to reorder
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

bkfly1

  • **
  • 24 posts
Re: Reorder Page Elements
« Reply #6 on: September 22, 2022, 09:05:50 PM »
I'm still not clear what needs to be done.  My page has the header with a link to login, register or publish at the top, then Latest Listings, then All Categories.  I would simply like to move the section named "All Categories" above the "Latest Listings" section. 

Can you explain how this can be done?,  i.e. what file(s) need to be modified?  What section of the file needs to be moved, etc.?


Secondary concern.  My All Categories section doesn't take up the whole width of the page, as the other sections do.  I'd prefer to have the All Categories section the same width as the others.

Thanks!

*

MB Themes

Re: Reorder Page Elements
« Reply #7 on: September 23, 2022, 02:16:03 PM »
@bkfly1
You probably need to take block of code from header.php into main.php that may impact other pages, so it's not such simple task.

For your 2nd question, you can enlarge main block and hide sidebar.
Code: [Select]
  body.home #main {width:100%!important;}
  body.home #sidebar {display:none!important;}
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

bkfly1

  • **
  • 24 posts
Re: Reorder Page Elements
« Reply #8 on: September 23, 2022, 03:25:26 PM »
Just to clarify, attached is a screen shot showing the two things I'm trying to accomplish...







Per your second suggestion, where can these two lines be found?
  body.home #main {width:100%!important;}
  body.home #sidebar {display:none!important;}
« Last Edit: September 23, 2022, 03:37:10 PM by bkfly1 »

*

MB Themes

Re: Reorder Page Elements
« Reply #9 on: September 23, 2022, 03:48:34 PM »
It is CSS, you are asking too too too much basic questions. Spend 1 hour to learn CSS basics as we cannot help with such elementary items.
https://www.w3schools.com/css/default.asp
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

bkfly1

  • **
  • 24 posts
Re: Reorder Page Elements
« Reply #10 on: September 23, 2022, 03:59:39 PM »
I'm not a programmer.  Sorry to be such a burden to you.

I don't think asking you to include the name of a file you're providing code snippets from is asking too much.

*

MB Themes

Re: Reorder Page Elements
« Reply #11 on: September 23, 2022, 04:21:55 PM »
You do not need to be programmer to know css and html basics
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

bkfly1

  • **
  • 24 posts
Re: Reorder Page Elements
« Reply #12 on: September 23, 2022, 05:25:15 PM »
Nor do you need to be one to know common courtesy and customer service basics.  ;)

*

MB Themes

Re: Reorder Page Elements
« Reply #13 on: September 23, 2022, 06:59:38 PM »
Customization is not basic service. Courtesy goes aside in forums :D
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots