• Resolved zelphis

    (@zelphis)


    hello

    i really appreciate your template.

    how can i have a category (www.mywebsite.com/category/mycategory) page looking like the home page (with all the pictures) ?

    thank

Viewing 1 replies (of 1 total)
  • hi @zelphis

    there is no option for that. You should do by creating custom template.
    1. You need to create child theme.
    2. Create category.php in child theme, based on archive.php of Sauron
    3. Homepage template of Sauron contains several sections of posts. See front-page.php file

    <div id="content_front_page">
    				<div class="main" id="portfolio_posts"> <?php sauron_frontend_functions::portfolio_posts(); ?></div>
        	  <div id="image_list_top0" class="image_list_top portfolio_list "><?php sauron_frontend_functions::home_featured_post(); ?></div>
          	<div id="image_list_top1" class="image_list_top portfolio_list "><?php sauron_frontend_functions::blog_posts_section(); ?></div>
    				<div id="image_list_top2" class="image_list_top portfolio_list "><?php sauron_frontend_functions::gallery_posts_section(); ?></div>
    				<div id="image_list_top3" class="image_list_top portfolio_list "><?php sauron_frontend_functions::review_posts_section(); ?></div>
    				<div id="image_list_top4" class="image_list_top portfolio_list "><?php sauron_frontend_functions::diagram_page_section(); ?></div>
    				<div id="image_list_top5" class="image_list_top portfolio_list "><?php sauron_frontend_functions::pinned_posts_section(); ?></div>
    				<div id="image_list_top6" class="image_list_top portfolio_list "><?php sauron_frontend_functions::social_icons_section(); ?></div>
    				<div id="image_list_top7" class="image_list_top portfolio_list "><?php sauron_frontend_functions::contact_us_section(); ?></div>
    			<?php
        wp_reset_query(); ?>
        	<div class="clear"></div>
    		</div>

    Each of the functions in sauron_frontend_functions class outputs one section. Replace the loop in category.php template by one of the functions you need. Note that probably you will need to create a modified copy of that function also.

Viewing 1 replies (of 1 total)
  • The topic ‘category page as home page’ is closed to new replies.