Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • in reply to: Blog > Full Text: Restrict image size #145414
     meltdown
    Participant

    Great – Thank you. Is it possible to center the image/gallery? I tried the following but it had no affect:

    COPY CODE
    .article-media img {
        width: auto !important;
        margin-left: auto;
        margin-right: auto;
    }

    Thanks again

    in reply to: Blog > Full Text: Restrict image size #144688
     meltdown
    Participant

    Thanks for your response. Isn’t the size that I want somewhat dependent on the size of the image, which may vary? What seems right to me would be that the image fills about 60% of the container width, even if the image itself is much bigger than that.

    I would have that that your first solution, as seen below, would have worked, but it cut the image in half:

    COPY CODE
    .article-media.kleo-banner-slider div {
        width: 50% !important;
    }

    Using a percentage seems best, but can it be done without cutting the image?

    Thanks again

    in reply to: Be automatically registered to a membership level #139638
     meltdown
    Participant

    Using the following code found at this support thread new members are directed to a blank Membership Levels page (as pictured in the attached image). Why is the page blank if I have created a FREE membership level?

    COPY CODE
    add_action( 'template_redirect', 'my_membersip_restrict' );
     
    function my_membersip_restrict() {
        global $pmpro_pages, $post;
     
        if ( is_user_logged_in() && !pmpro_hasMembershipLevel() ) {
            if (isset($post->ID) && !in_array($post->ID, $pmpro_pages)) {
                wp_redirect( pmpro_url() );
            }
        }
    }

    Without that code they are “registered” but NOT registered to my one membership level. How can they just be automatically subscribed to my membership level?

    Thanks again

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

Log in with your credentials

Forgot your details?