Title: image widith
Last modified: August 8, 2020

---

# image widith

 *  Resolved [dulleca](https://wordpress.org/support/users/dulleca/)
 * (@dulleca)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/image-widith/)
 * Hello, I put the shortcode in the sidebar but it appears like this:
 * [https://ibb.co/d7ryMKG](https://ibb.co/d7ryMKG)
 * other widgets appear normal and take the full width in the sidebar, how can I
   fix this?
 * Thank you
 * note: can’t give the URL in question because it’s under development.

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

 *  Plugin Author [Iulia Cazan](https://wordpress.org/support/users/iulia-cazan/)
 * (@iulia-cazan)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/image-widith/#post-13229325)
 * Hi,
 * From the image, I can understand that the wrapper element is too small. Can you
   inspect the elements and see if there is any max-width set there. Also, what 
   shortcode attributes do you use? Are you using columns?
 * Regards,
    Iulia
 *  Thread Starter [dulleca](https://wordpress.org/support/users/dulleca/)
 * (@dulleca)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/image-widith/#post-13229792)
 * Hi,lulia
 * I checked the columns and it’s fixed now.
    [https://ibb.co/6R8mxV8](https://ibb.co/6R8mxV8)–
   I have another two questions and will be appreciated if you answer them:
 * 1 – I want to implant the shortcode under the post, I’ve already tried putting
   the shortcode using a hook in _function.php_ file but it didn’t work, how can
   i do that? ( I’m using generatepress theme)
 * 2 – how to control post title size? using a css code class or editing the shortcode?
 * Thank you.
 *  Plugin Author [Iulia Cazan](https://wordpress.org/support/users/iulia-cazan/)
 * (@iulia-cazan)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/image-widith/#post-13236134)
 * Can you show me the code you add in the functions.php to display the shortcode
   output?
    For the post size title, it depends a lot on what the shortcode exposes,
   like what other elements you display, and the limits you apply in the shortcode
   attributes. The title element can always be targeted in your CSS and change there
   how that to be shown, but I would need an explicit example to work with.
 *  Thread Starter [dulleca](https://wordpress.org/support/users/dulleca/)
 * (@dulleca)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/image-widith/#post-13236649)
 * i used something like this with varietes of the shortcode:
 * add_action( ‘generate_after_content’,’re_post_un’ );
    function re_post_un() {?
   > [latest-selected-content limit=”4″ display=”title” titletag=”strong” url=”yes”
   image=”thumbnail” elements=”3″ css=” align-right as-overlay tall” type=”post”
   status=”publish” orderby=”dateD”] <?php }
 *  Plugin Author [Iulia Cazan](https://wordpress.org/support/users/iulia-cazan/)
 * (@iulia-cazan)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/image-widith/#post-13238607)
 * To make it work you have to do something like this:
 *     ```
       add_action( 'generate_after_content', 're_post_un' );
       function re_post_un() {
       	echo do_shortcode( '[latest-selected-content limit="4" display="title" titletag="strong" url="yes" image="thumbnail" elements="3" css=" align-right as-overlay tall" type="post" status="publish" orderby="dateD"]' );
       }
       ```
   
 * So, use the WordPress `do_shortcode` native function that transforms the shortcode
   string into the output.
 * Let me know if this works.
 * Regards,
    Iulia
    -  This reply was modified 5 years, 10 months ago by [Iulia Cazan](https://wordpress.org/support/users/iulia-cazan/).
 *  Thread Starter [dulleca](https://wordpress.org/support/users/dulleca/)
 * (@dulleca)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/image-widith/#post-13247128)
 * Works very well.
 * Thanks again, keep it up.

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

The topic ‘image widith’ is closed to new replies.

 * ![](https://ps.w.org/latest-post-shortcode/assets/icon-128x128.gif?rev=2355649)
 * [Latest Post Shortcode](https://wordpress.org/plugins/latest-post-shortcode/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/latest-post-shortcode/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/latest-post-shortcode/)
 * [Active Topics](https://wordpress.org/support/plugin/latest-post-shortcode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/latest-post-shortcode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/latest-post-shortcode/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [dulleca](https://wordpress.org/support/users/dulleca/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/image-widith/#post-13247128)
 * Status: resolved