Okay
  Public Ticket #1390659
Left Align Portfolio style2
Closed

Comments

  • mustangquen started the conversation

    Using project style2 if you don't have enough portfolios to fill the whole row example you have 2 instead of 3 the layout seems to make the second one go to the right side leaving a gap in the center. How can I make this display more normal so the second one would just fill the gap in the center leaving an empty space on the right.

  •  2,010
    Ocean replied

    Hello,

    I do not understand why you post excerpt in every portfolio items?

    Please send link your website to check.

    On my website test, "OT Portfolio Style 2" element work fine: http://prntscr.com/hir5hu

    Thank you

  • mustangquen replied

    Post except isn't an issue this was added by just adding  the below code to the template. I have added code to the function to even out the excepts. Previously the space was in the center I noticed due to text uneven lines forcing it that way. I have evened out the except length so all equal and now notice everything aligns to the right but due to that it uses absolute values doing this I am unsure what file I should be looking for to change it to align to the left.
    <?php echo the_excerpt() ?> 

    You have provided a bad example as you have uneven images but the fact that the large uneven image is on the right shows that it is aligning to the right and you will be able to see that it is doing this with absolutes values so this isn't a simple css fix.

    Site is currently under development so not live yet to provide link. Also I have checked removing the except text if it makes any difference which as expected it didn't. Site is running on latest update as far as I know being (3.6.8.4). I just need to know what to edit to change alignment usually this is simple with css but as screenshot shows this is done using scripts changing the absolute values. Rather than spending hours searching through files for these if you could tell me where so I can edit it to left align that would be great.

  •  2,010
    Ocean replied

    Hello,

    Please send your link website for check and help.

    "OT Portfolio Style 2" element  using the Masonry javascript and automatically rearrange portfolios to fill the space on the page.

    Please see how Masonry work: https://masonry.desandro.com/layout.html

    Thank you

  • mustangquen replied

    You can close this ticket now. I have resolved this myself now no help from yourself. Also note your example url uses different script to your actual site as the example uses % for response absolute compared to yours uses px.

  •  2,010
    Ocean replied

    Ok, No Problem, Thank you