• Hi all,

    I had a problem with a pluginn and coder came back with the following reply:

    “Events are based on the WP ‘post’ page template, so this is where you’d need to disable the image.”

    Does anyone have any idea where I can find the post page template and how to make the image size go smaller?

    Many thanks,
    Nav

Viewing 10 replies - 1 through 10 (of 10 total)
  • What plugin was it? Where did you download it from?

    Thread Starter naveen73

    (@naveen73)

    Hi Stephencottotail,

    The calendar came from timely.

    https://time.ly/

    Cheers,

    Naveen

    I’m sorry, but as you are using a non-WP.org plugin, you need to seek support from the people who developed the plugin. Since you’ve already contacted them once, it shouldn’t be too much trouble to continue to ask them for support. Here, we only support themes and plugins downloaded from the official WP.org repositories.

    Thread Starter naveen73

    (@naveen73)

    both the theme AND the pluginn I downloaded from wp.org. Really I did.

    You’re right. I apologize, I must have overlooked it when I searched the repository.

    What exactly are you trying to accomplish? Can you post a link to your website?

    Thread Starter naveen73

    (@naveen73)

    Please see the link here:

    https://reigate.aryapratinidhisabha.org.uk/?page_id=22

    When you click on the plus sign it expands. Then, when you click on the “read more” button you will be directed to:

    https://reigate.aryapratinidhisabha.org.uk/?ai1ec_event=fundraising-age-concern-banstead&instance_id=2

    I think the image is just too large and I want to fix it.

    thanks,

    Nav

    You could actually fix this by using CSS instead of editing the page template. Use your theme’s built-in custom CSS option if it has one; otherwise get a custom CSS plugin and put:

    .imagerct {
    display: block;
    width: 50%;
    margin: 0 auto;
    }

    What this does is it makes the image 50% of the containing element, and the margin: 0 auto line centers the image inside the containing element. You could remove the margin line if you don’t want that behavior, and you could change the width: percentage to change the size of the image.

    Thread Starter naveen73

    (@naveen73)

    Stephencottontail,

    Many thanks for this. I put width on 0% and got rid of the image al toegether. Just a few things.

    1. How did you know that it was “imagerct” you had to change?
    2. I want to familiriase myself anyway with theme/post editing (it is my next step in my WordPress journey) so could you point me to the direction anyway?

    Thanks,

    Nav

    You can use a tool like Firebug or Safari’s Web Inspector for these kinds of situations. Once you have it installed, you can simply right-click and select “Inspect Element” (or something like that) and you can see what CSS rules apply to a particular part of a website. You can even do live testing of different CSS rules without fear of breaking anything.

    For your second question, you should always make a child theme instead of directly editing the theme’s files. If you don’t make a child theme, and your theme gets updated someday, you’ll lose all the edits you made to the theme. Once you have your child theme, you would copy content-single.php from the parent theme to your child theme’s folder. Edit that file in whatever editor you prefer and delete this code block:

    <div class="blog-image">
        <?php
        if ( has_post_thumbnail() ) {
            $image_src = wp_get_attachment_image_src( get_post_thumbnail_id(),'featured' );
            echo '<img alt="post" class="imagerct" src="' . $image_src[0] . '">';
        }
        ?>
    </div>
    Thread Starter naveen73

    (@naveen73)

    stephencottontail,

    Thanks for this. Really appreciated.

    Naveen

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘post template’ is closed to new replies.