Okay
  Public Ticket #381482
Categories layout
Closed

Comments

  • Marco started the conversation

    Hello!

    My customer asking if is it possible to change the category layout.

    He doesn't want a list of the post previews, but just a full row list... (not a grid, just like having a div just to show full articles)

    I asked for more details, but I just checked and I don't know if categories can be changed within WP or if I have to change the PHP file...

    Thanks!

  • Marco replied

    also, how can I change this?


    <article id="post-1362" class="post-1362 post type-post status-publish format-standard hentry category-recensioni-utenti pull-left box masonry-brick" style="position: absolute; width: 370px; left: 0px; top: 0px;">


    I cannot find where is the 370px value within the code...

    If I change that inline style diectly in the browser, I achieve waht my customer wants, but I don't know where to edit...

    I found the content.php and archive.php but no trace of that inline style...


  •  93
    djwd replied

    Hi there,

    1. You would need to customize the template files archive.php and content.php to change the way category pages list articles.

    2. That is because block sizes are handled by Masonry js script, which is fired and customizable in admin/functions-extended/fn-js.php from line 119

    Regards
    djwd

    Regards
    djwd

  • Marco replied

    Thank you! Here's why I cannot found "370px" inside the code! It's a 360 and I think it adds something within the JS.

    Nice!


    Listen, that Masonry Fire is used only within categories or elsewhere? Just to know if I modify it I'll get troubles on other pages.

    Thanks again!

  •  93
    djwd replied

    Hi there,

    No problem. Yes it's only used for articles blog listing, just backup your changes in case something screws up ;)

    Regards
    djwd

    Regards
    djwd