Support » Theme: Gridzone » Adding Author Name on Masonry

  • Hi Alex

    Enjoying the look of your theme for my multi author poetry site. Was hoping you could help. I do not know anything about CSS, but I can cut and paste where instructed. 🙂
    I found the CSS to remove the date from the Masonry front page. Now I would like to add the author name.

    Would also like to reduce or remove the cell padding between the Masonry items on the front page.

    Would also like to include Pages as Masonry items on front – it only seems to show posts.



    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author Alexander Agnarson


    Hi Craig!

    To reduce padding between masonry items, go to Customize > Additional CSS and add:

    .masonry-item { padding: 10px; }

    As for adding pages to masonry on front… hmm, I don’t think that’s possible unless there is some plugin which adds pages to the post loop.

    To add a username instead of date, you need to edit content.php, preferably with a child theme, and locate line 30:

    <li class="entry-date"><i class="far fa-calendar"></i> <?php the_time( get_option('date_format') ); ?></li>

    Change that to:

    <li class="entry-date"><i class="far fa-user"></i> <?php the_author_posts_link(); ?></li>
    Thread Starter alfiebrill


    Thanks Alex

    Displaying the pages in the grid isn’t essential- so I will leave that.

    Now I have installed a child theme, edited line 30, and successfully displaying the author name, but the calendar icon is now showing. The cSS I used before to remove the date removes the author name as well. How to just remove the calendar, but leave the author?



    Theme Author Alexander Agnarson


    If you see my code example, you need to replace this:

    <i class="far fa-calendar"></i>

    With this:

    <i class="far fa-user"></i>
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Adding Author Name on Masonry’ is closed to new replies.