Home / Forums / DynamiX Support / Space under the post-gallery…

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts

  • David Bakke
    Participant

    Cheers,

    The post-gallery seems to push everything else down.

    http://eventsupport.no/temp/?page_id=2440

    As you can see, there is a big gap under the picture.

    Here is the code.

    [postgallery_image width="667" id="0" height="240" undefined categories="27, 28"   animation="fade" tween="linear" navigation="disabled" timeout="4" sortby="rand"  limit="4"  /]<h1>Lanseringer & Nyåpninger</h1><h3>Lanseringer</h3>En vellykket lansering av nye produkter og tjenester gir solide og langsiktige utslag på salgskurvene. Vi skaper positiv oppmerksomhet, og sørger for at flest mulig blir kjent med de nye produktene og/eller tjenestene.

    Any ideas?

    Friendly regards,

    David


    David Bakke
    Participant

    Code again:

    ( postgallery_image width="667" id="0" height="240" undefined categories="27, 28"   animation="fade" tween="linear" navigation="disabled" timeout="4" sortby="rand"  limit="4"  / )<h1>Lanseringer & Nyåpninger</h1><h3>Lanseringer</h3>En vellykket lansering av nye produkter og tjenester gir solide og langsiktige utslag på salgskurvene. Vi skaper positiv oppmerksomhet, og sørger for at flest mulig blir kjent med de nye produktene og/eller tjenest…

    Andy
    Andy
    Keymaster

    Ok I've been having a play with the shortcodes.php to make it better. 

    Find this block of code under stage gallery in DynamiX/lib/inc/shortcodes.php

     if(esc_attr($imageeffect)=="reflection" || esc_attr($imageeffect)=="shadowreflection") {

     if($DYN_stageplaypause=="enabled") {

      $galheight=esc_attr($height)+"55";

    } else {

    $galheight=esc_attr($height)+"45";

    }

     } else {

     if($DYN_stageplaypause=="enabled") {

      $galheight=esc_attr($height)+"45";

    } else {

    $galheight=esc_attr($height)+"35";

    }

     }

    Replace it all with the following

     if(esc_attr($imageeffect)=="reflection" || esc_attr($imageeffect)=="shadowreflection") {

      if($DYN_stageplaypause=="enabled") {

      $galheight=esc_attr($height)+"55";

    } else {

    $galheight=esc_attr($height)+"45";

    }

     } elseif(esc_attr($imageeffect)=="shadow") {

      if($DYN_stageplaypause=="enabled") {

      $galheight=esc_attr($height)+"35";

    } else {

    $galheight=esc_attr($height)+"30";

    }

     } else {

      if($DYN_stageplaypause=="enabled") {

      $galheight=esc_attr($height)+"20";

    } elseif($DYN_stageplaypause=="disabled") {

    $galheight=esc_attr($height);

    } else {

    $galheight=esc_attr($height)+"15";

    }

     }


    David Bakke
    Participant

    Thanx for your quick replies!

    I've added my code under this message (mine is different from yours), 

    and when i replace it with your new code, nothing shows up…

    http://eventsupport.no/temp/?page_id=2823

     if(esc_attr($imageeffect)=="reflection" || esc_attr($imageeffect)=="shadowreflection") {

     if(esc_attr($playnav)) {

      $galheight=esc_attr($height)+"55";

    } else {

    $galheight=esc_attr($height)+"45";

    }

     } else {

     if(esc_attr($playnav)) {

      $galheight=esc_attr($height)+"45";

    } else {

    $galheight=esc_attr($height)+"35";

    }

     }

     

    Andy
    Andy
    Keymaster

    It looks reduced to me? Did you get it working?


    David Bakke
    Participant

    I thought I'd posted a message, and I got it working. But I'l like to reduce it even more! 🙂 Which values do I have to change?

    Andy
    Andy
    Keymaster

    try adding to the style.css

    .post-gallery-wrap {

     margin-bottom:0 !important;

    }

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.