*

bkfly1

  • **
  • 12 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

  • **
  • 12 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