Your cart is currently empty!
Homepage › Community Forums › Epik Theme Support › Portfolio alignment issue
Wes, I followed the directions in https://appfinite.com/topic/portfolio-problem/#post-8091
But am still having alignment issues with the portfolio. Page through this and you’ll see: http://floridahikes.com/blog
It may be an issue with the clear statement in the CSS. Where should I be placing it? (Which file and where in the CSS).
Thank you for your help!
Looks like it’s missing the code that supposed to show up from the page_portfolio.php file. Make sure and replace that code as mentioned in the tutorial and then it should show up since you already have the css added.
Did that. No luck (although it DID work on an installation of Optimal that I’m using elsewhere).
See http://floridahikes.com/travels
Suggestions? Thank you.
It’s still missing the code that’s supposed to be added in the page_portfolio.php. You can find that in the tutorial above –
// Clear float using genesis_custom_loop() $loop_counter variable
// Outputs clearing div after every 4 posts
// $loop_counter is incremented after this function is run
add_action( 'genesis_after_post', 'portfolio_after_post' );
function portfolio_after_post() {
global $loop_counter;
if ( $loop_counter == 3 ) {
$loop_counter = -1;
echo '<div class="clear"></div>';
}
}
Once you add this in your portfolio template, then this will show up on your site – <div class="clear"></div>
which will link to the css I mentioned earlier.
Did the above but still having the alignment trouble. Not sure what to do next.
Thanks, Sandra
Are you able to create a temporary username/password for me? I can log in and get this fixed for you…..If you can just add it here as a private message.
Just got it fixed 馃檪 You were supposed to add the second block of code from the tutorial – https://appfinite.com/topic/portfolio-problem/#post-8091…..when I checked your file it had the first block of code.
I commented out the older code and added the new code right under so you can see what I did.
Whenever you’re done setting everything up be sure and add it to the Showcase – https://appfinite.com/showcase-your-site
I was going based on this link – http://floridahikes.com/travels Check that one out and let me know how it looks. I think the issue is there are two Portfolio templates inside your theme. I only changed one of them. Do you remember creating an extra one, or was that there by mistake? If so, you can either delete the extra one (without the modified code) or you can go to the pages were you have it selected as a template and select the other template.
The second one is a backup before code changes. Not sure why it’s showing up in the theme editor, but all pages use the primary one. If you go to page 2 of http://floridahikes.com/travels, it’s misaligned. The problem appears to occur in Page 2 or Page 3, rarely Page 1. I’ll see about deleting that backup just in case.
Ok let me know if that fixes it.
Finally was able to delete that subdirectory and presto, it works! Thanks so much for your help. The site looks far better now with portfolios aligned as they should be.
You’re Welcome!