Home>Support>How to add masonry to my categories?

How to add masonry to my categories?

By Ovidiu, 9 years ago. Last reply by Andrew Misplon, 9 years ago.

Is there a php code I can insert into my category template to show masonry instead of the “normal” content?

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 9 years, 5 months ago Andrew Misplon
    Hi, I Work Here

    Hi Ovidiu

    Unfortunately not, the Masonry widget is only packaged in widget format at the moment. What you could do is manually create your own category pages. The Masonry widget has a field at the end called Additional, in that field you can add an argument as follows:

    cat=x
    

    Where x is the category ID you’d like to filter. You can also comma separate and add multiple ID’s To get a category ID, go to Posts > Categories and click on a category name, then view the url, the ID will be the only number in the url.

    (You can also put a minus sign in front of ID’s to exclude them.

    Hope that helps.

  2. 9 years, 5 months ago Ovidiu

    Thanks, I’ve sorted this out already by creating my own category.php template and inserting an extra sidebar there so I can place your masonry widget there into the content, example: http://pacura.ru/category/cityscapes/

  3. 9 years, 5 months ago Ovidiu

    Hi Andrew,

    I tried replying to the thread but my reply disappeared. Have I been spammed?
    Here is my reply:

    Thanks, I've sorted this out already by creating my own category.php template and inserting an extra sidebar there so I can place your masonry widget there into the content, example:
    http://pacura.ru/category/cityscapes/

    cheers
    Ovi

  4. 9 years, 5 months ago Andrew Misplon
    Hi, I Work Here

    Hi Ovidiu

    Apologies. We’ve been getting a few false positives. Greg has sorted this problem out for your account.

    Super, glad to hear you made progress. Thanks for the update.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More