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

    Hi,
    I have made Demo Enfold 3.1.5 at WP 4.2.2

    The portfolio grid sort options are only in center at full screen.
    But as soon I drop it in some element like color section, 1/1 etc. the menu drops to the left:
    http://gyazo.com/fb8e385d17453e5000321803016729d1

    There should be a option to have it always in center or to the left.
    Do you have a function to get this or any another solution?
    For some users left is ok but others like it always in center only…

    Thanks for your help
    Peter

    • This topic was modified 9 years, 6 months ago by pegasso4444.
    #449326

    Hey pegasso4444!

    I can’t see an element like in your screenshot on the page you linked? Where is it located?

    Regards,
    Rikard

    #449382

    Hey Rikard!
    OOPS I forgot to mention the link at menu: Portfolio/Portfolio Grid Test
    http://test.euramobil.info/portfolio-grid-test/
    Sorry
    Peter

    • This reply was modified 9 years, 6 months ago by pegasso4444.
    #449444

    Hey Peter!

    No problem, please try the following in Quick CSS:

    .sort_by_cat {
      display: table !important;
      margin: 0 auto !important;
    }

    Cheers!
    Rikard

    • This reply was modified 9 years, 6 months ago by Rikard.
    #450163

    Hey Rikard!
    That works perfect – but only if the code is in Quick CSS.
    When the code is in the child css or in the enfold/css/custom.css it works no longer…
    Why??
    I prefer to keep this away from clients.
    Thanks for your help
    Peter

    #450166

    Hi!

    You can add the code to Style.css file of your child theme.

    Best regards,
    Yigit

    #450169

    HI Yigit
    As said in my post – if the code is in Style.css it is no longer working…
    Any solution?
    Best regards,
    Peter

    #450174

    Hey!

    Please try adding following code to Functions.php file

    function add_custom_target(){
    ?>
    <style>.sort_by_cat {
      display: table !important;
      margin: 0 auto !important;
    }</style>
    <?php
    }
    add_action('wp_footer', 'add_custom_target');

    Cheers!
    Yigit

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