• Resolved Haldan

    (@hblecher)


    Hi again Anders,

    Two related questions:

    1. Is it possible to change the elements of the Post Template query loop so that the full post content is used instead of post excerpt? I tried dragging in a separate “post content” block into the query loop, but the site editor won’t allow that (it just either drags before or after the query loop). I’m basically just trying to make the full post content show up on the main page like an old school blog.

    2. Is there a way to limit the size of featured images within the query loop so that they are never resized beyond their original resolution? I’d like them to continue to scale depending on the size of the window, but I don’t want them scaling up beyond their original dimensions (and thus becoming blurry or pixelated).

    Thanks in advance for any insight!

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Haldan

    (@hblecher)

    Sorry for the premature post — I figured out (1) but I am still having trouble formatting the “post content” block so that it has a border.

    (2) I still can’t seem to figure out.

    Theme Author Anders Norén

    (@anlino)

    Hi @hblecher,

    1. The post content block doesn’t support borders (at least right now, I believe), but you can wrap it in a group and set a border on the group block.

    2. Core bundles CSS that sets the featured image element to be 100%, so it always fill the width of the container. You can overwrite this by adding the following custom CSS in the Customizer:

    .wp-block-post-featured-image img { width: auto; }

    — Anders

    Thread Starter Haldan

    (@hblecher)

    Thank you Anders. Both of those suggestions worked perfectly.

    One last question (sorry if these are elementary) —

    How can I change the dimensions or formatting of the query pagination numbers? They end up stacking on top of one another because I can’t seem to change the dimensions of the block they’re inside of (I’d like the numbers to sit side by side on the same line instead of stacking).

    Thanks again.

    Thread Starter Haldan

    (@hblecher)

    Ok, that wasn’t actually the last question, sorry!

    You’ll notice on the main page that the post content has much more severe margins than the title and other elements in the query loop. Is there any way to change this so that the margins of all the elements in each post visible on the main page are aligned? These margins are attractive on the individual post pages, but it doesn’t look very nice on the main page. These margins are not visible in the preview window within the site editor, but end up applied on the published site.

    I’ve tried adjusting the content width and wide width within the post content block settings, but that doesn’t seem to work to reduce the margins, only to expand them. I looked through the theme’s blocks.css but I couldn’t find anything relevant.

    Any insight would be appreciated.

    Theme Author Anders Norén

    (@anlino)

    Hi @hblecher,

    The Query Pagination block has pretty limited settings right now, so what you see in the block settings when you select it in the Site Editor is what you get. You can modify the display further using custom CSS, though.

    Your last question should be fixed with version 0.2.2, which is available as an update now. The handling of block widths in different contexts is still a bit of a wild west for block themes.

    — Anders

    Thread Starter Haldan

    (@hblecher)

    Thanks Anders!

    I appreciate the help.

    1. Since I’m not sure what kind of custom css would be necessary to adjust the query pagination block, I’ve opted to just remove the numbers and limit functionality to previous and next pages.

    2. I’ve updated to 0.2.2, and the post content issue seems to have been fixed! Just wanted to note that without changing anything else, the total margins for the content on the main page appears to have disappeared, but I solved that by setting the group content to something less than 100% and that seems to have addressed this.

    Thanks again!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Adjusting elements of Query loop (Post Template)’ is closed to new replies.