• Resolved cwdesigner

    (@cwdesigner)


    Hi, amazing job with this plugin!

    I’m having problems in customising the way the post are displayed.

    First of all, the content is not centred and I also have this “” sections displayed for some reasons.

    Second, how do I get to set the width (and height) of the thumbnail as 100% of his container?

    Basically I’d like to have the post under the “Real estate” section at the bottom of the page displayed as the post at the top of the page, under the Canary Wharf: Live It Fully Everyday section.

    I’m using inline css atm, I will replace it later with css classes.

    If I was not clear or you need more info or I’m asking something not possible, let me know.

    Thanks

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter cwdesigner

    (@cwdesigner)

    I actually forgot to mention that I’m not really getting how to set the images size. Putting size=’1×1′ or size=’1000×50′ produces the same result.

    Plugin Author johnzenausa

    (@johnzenausa)

    Beautiful website I must say. Just for curiosity reasons are you using Oxygen Builder as your theme builder. That’s my favorite also.

    But I have to apologize for the confusion I probably haven’t updated the readme.txt file correctly. No longer does size='20x20' work to change the size of the image straight out. What goes in there now is the thumbnail size you want to use. Below is a couple of examples.

    Here are the default sizes WordPress creates:

    the_post_thumbnail('thumbnail');       // Thumbnail (default 150px x 150px max)
    the_post_thumbnail('medium');          // Medium resolution (default 300px x 300px max)
    the_post_thumbnail('medium_large');    // Medium Large resolution (default 768px x 0px max)
    the_post_thumbnail('large');           // Large resolution (default 1024px x 1024px max)
    the_post_thumbnail('full');            // Original image resolution (unmodified)

    So what you would to is put the name of the sizes in between the quotes.

    I will list all of the image sizes just to be clear:

    1. size='thumbnail' which is the default that you are using now.
    2. size='medium_large' which gives you the 768px image above.
    3. size='large' which of course gives you the 1024px x 1024px image.
    4. size='full' which will give you the unaltered image. Then using css you can change the dimensions as you like.
    5. If you have any custom sizes made whether by a plugin or what you have added to the functions.php file or a plugin then just put in the name of that image size.

      At the bottom of this WordPress Page they made a custom image size:

      add_image_size( 'category-thumb', 300, 9999 ); //300 pixels wide (and unlimited height) so then it would just be size='category-thumb' and so forth.

      Now when you say center your images you mean you don’t want them floating to the left as they are now.

      Add this to a custom css file or under customizer or anywhere you may add custom css.

      netsposts-block-wrapper { display: flex; justify-content: center; flex-flow: row wrap; }

      As far as the little pink blemishes I see you have some empty wrapper with nothing in them and the css is as follow:

      .code {
      padding: 2px 4px;
      font-size: 90%;
      color: #c7254e;
      background-color: #f9f2f4;
      border-radius: 4px;
      }

      If you change background-color to background-color: rgba(0,0,0,0); it will make them disappear but might over write the css elsewhere.

      Give me an example of what you would like them to look like and I will work up some css for you later. Right now I must leave for work.

    Thread Starter cwdesigner

    (@cwdesigner)

    Hi, thanks for your help and sorry for this late reply. I actually use wp bakery page builder, but thanks 😀

    I used your plugin on another website I’m working on and everything went exactly the way it was supposed to, so I guess I’ll just check what’s wrong myself since the plugin is working perfectly.

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

The topic ‘Thumbnail design’ is closed to new replies.