Viewing 3 replies - 1 through 3 (of 3 total)
  • Yours is a paid theme – https://weblizar.com/themes/enigma-premium/. No help from Devs support?

    Anyways…
    If you have a file called front-page.php in your theme folder, then edit that. Or if you have you set any of your pages as homepage via Dashboard -> Settings -> Reading? Then edit that page template. If not, then check for home.php file and edit. If not, then edit index.php (highly unlikely!).

    search within the file the block of code contained within:
    <div id="enigma_portfolio_section" class="enima_photo_gallery">
    in that, you would ideally find a WP loop with 'numberposts' => 4 or posts_per_page = 4 or some similar parameter. change that to ‘2’ to show only 2 posts.

    Also remember to change the class of posts from .col-lg-3 to .col-lg-6 to make them show with 50% width instead of 25% (bootstrap).

    do take backups and work on child theme and edit with care.

    Thread Starter trioannn

    (@trioannn)

    Many thank’s!It worked as you said for the home-portfolio.php file!
    I am using the free version of enigma theme in wordpress and also i am new in wordpress so sorry if I sent in wrong place my query!

    ??

    Great!
    Do mark thread as resolved.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to show only 2 of 4 items in div class= "enigma_project_section"’ is closed to new replies.