Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #285355

    Hi, I previously added the following text you gave me to adjust the spacing of elements on my front page:

    div .av_one_third {
    margin-left: 2%;
    width: 33.3%;
    }
    div .av_one_half {
    margin-left: 2%;
    width: 49%;
    }
    body .column-top-margin {
    margin-top: 20px;
    }
    .content, .sidebar {
    padding-top: 20px;
    padding-bottom: 20px; }
    #top .isotope-item {
    padding-right: 10px;
    }

    The spacing is good overall, but the right alignment of the last column in the portfolio grid at the bottom of the page is around 10 pixels out of line with the columns above. How can I adjust this spacing so that both left and right sides of the portfolio grid always line up correctly with the other page elements, even when repositioned into 2 or 1 column in a responsive layout.

    Thanks, Richard

    #285493

    Hi Richard!

    Thank you for using the theme!

    You can decrease the right padding of the portfolio columns:

    #top .isotope-item {
    padding-right: 2px;
    }

    Regards,
    Ismael

    #285643

    Thanks Ismael,

    Is there no way to keep the padding between the portfolio grid items at 10px, whilst having them line up on their far left and far right sides with the other page columns? I want to keep the 10px padding but have them stretch the full ‘page’ width.

    #285649
    #285677

    Thanks Yigit, do I need to modify avia.js, or just add the css from that post in Quick CSS or my child theme css?

    #285682

    Hi!

    You should modify Avia.js file as well. You can replace it with the one Josue posted here – https://kriesi.at/support/topic/changing-portfolio-grid-image-display-size-and-padding-enfold-theme/#post-283714

    Regards,
    Yigit

    #285688

    Thanks Yigit, I added the css to my child theme’s css, and also uploaded the modified avia.js to my child theme as js/avia.js in my child theme folder.

    But it doesn’t seem to be working. My portfolio grid is still 10px short on the right hand side?
    Have I uploaded something incorrectly?

    #286015

    Hi!

    Thank you for the update.

    Please use this on the child theme’s functions.php if you want to load avia.js on the child theme folder:

    if(!is_admin())
    {
    	add_action('wp_enqueue_scripts', 'avia_register_child_frontend_scripts', 100);
    }
    
    function avia_register_child_frontend_scripts()
    {
    	$child_theme_url = get_stylesheet_directory_uri();
    
    	//register js
    	wp_register_script( 'avia-default-child', $child_theme_url.'/js/avia.js', array('jquery'), 1, false );
    	wp_enqueue_script( 'avia-default-child' );
    }

    Regards,
    Ismael

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.