Title: vyww's Replies | WordPress.org

---

# vyww

  [  ](https://wordpress.org/support/users/vyww/)

 *   [Profile](https://wordpress.org/support/users/vyww/)
 *   [Topics Started](https://wordpress.org/support/users/vyww/topics/)
 *   [Replies Created](https://wordpress.org/support/users/vyww/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/vyww/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/vyww/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/vyww/engagements/)
 *   [Favorites](https://wordpress.org/support/users/vyww/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 26 total)

1 [2](https://wordpress.org/support/users/vyww/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/vyww/replies/page/2/?output_format=md)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [how to change 'read more'](https://wordpress.org/support/topic/how-to-change-read-more/)
 *  Thread Starter [vyww](https://wordpress.org/support/users/vyww/)
 * (@vyww)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/how-to-change-read-more/#post-4375877)
 * Thanks for getting back to me! I have uploaded the page template [here](https://dl.dropboxusercontent.com/u/48849285/personal/journaltemplate.php).
 * I don’t think `the_content()` is being used? I did not see it.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Offload Media Lite for Amazon S3, DigitalOcean Spaces, and Google Cloud Storage] Error retrieving a list of your S3 buckets from AWS: Access Denied](https://wordpress.org/support/topic/error-retrieving-a-list-of-your-s3-buckets-from-aws-access-denied/)
 *  [vyww](https://wordpress.org/support/users/vyww/)
 * (@vyww)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/error-retrieving-a-list-of-your-s3-buckets-from-aws-access-denied/#post-4334319)
 * Hi! Glad you hear you solved it! How did you manage to do it? I searched policy
   permission in AWS’ support page but nothing helpful came up.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [comment link background disappeared](https://wordpress.org/support/topic/comment-link-background-disappeared/)
 *  Thread Starter [vyww](https://wordpress.org/support/users/vyww/)
 * (@vyww)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/comment-link-background-disappeared/#post-3836703)
 * Oh. Oh my that was really silly of me. Thank you for being so patient! 🙂
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [comment link background disappeared](https://wordpress.org/support/topic/comment-link-background-disappeared/)
 *  Thread Starter [vyww](https://wordpress.org/support/users/vyww/)
 * (@vyww)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/comment-link-background-disappeared/#post-3836693)
 * In my child theme
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [images side by side in div](https://wordpress.org/support/topic/images-side-by-side-in-div/)
 *  Thread Starter [vyww](https://wordpress.org/support/users/vyww/)
 * (@vyww)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/images-side-by-side-in-div/#post-3823882)
 * Hi, sorry to trouble you again, but what would you suggest regarding the header.
   php?
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [add space under the side by side images](https://wordpress.org/support/topic/add-space-under-the-side-by-side-images/)
 *  Thread Starter [vyww](https://wordpress.org/support/users/vyww/)
 * (@vyww)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/add-space-under-the-side-by-side-images/#post-3732166)
 * Thank you for the advice! I have made a new topic [here](http://wordpress.org/support/topic/different-widths-for-image-and-text-and-style-images-side-by-side?replies=1).
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [add space under the side by side images](https://wordpress.org/support/topic/add-space-under-the-side-by-side-images/)
 *  Thread Starter [vyww](https://wordpress.org/support/users/vyww/)
 * (@vyww)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/add-space-under-the-side-by-side-images/#post-3732163)
 * Hello, sorry to bother you! I’m hoping you would be able to help me with this
   again; I’ve been asking around but there wasn’t conclusive answers. I recently
   added this to my functions.php in order to wrap my images in a div – had to do
   this because it seemed like the only way to style images to have a different 
   width from the text in the content.
 *     ```
       <?php
   
       function breezer_addDivToImage( $content ) {
   
          // A regular expression of what to look for.
          $pattern = '/(<img([^>]*)>)/i';
          // What to replace it with. $1 refers to the content in the first 'capture group', in parentheses above
          $replacement = '<div class="image">$1</div>';
   
          // run preg_replace() on the $content
          $content = preg_replace( $pattern, $replacement, $content );
   
          // return the processed content
          return $content;
       }
   
       add_filter( 'the_content', 'breezer_addDivToImage' );
   
       ?>
       ```
   
 * But now the `<p class="halfeach">` doesn’t work anymore, and I’ve managed to 
   fix it with a combination of adjusting the widths and the CSS:
 *     ```
       .alignright {
       	float: right;
       	margin: 0 0 50px 0;
       	display: inline-block;
       }
       .alignleft {
       	float: left;
       	margin: 0 0 50px 0;
       	display: inline-block;
       }
       a img.alignright {
       	float: right;
       	margin: 0 0 50px 0;
       	display: inline-block;
       }
       a img.alignleft {
       	float: left;
       	margin: 0 0 50px 0;
       	display: inline-block;
       	clear: both;
       }
       #page-container .image {
       	margin: 7px 0px !important;
       }
       ```
   
 * However, the space disappears like before ([example post here](http://vyww.co/136/).
 * Is it possible to have a variation of the solution like before? That was great
   🙂
 * Thank you so much for your help! 🙂
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [how to center date](https://wordpress.org/support/topic/how-to-center-date/)
 *  Thread Starter [vyww](https://wordpress.org/support/users/vyww/)
 * (@vyww)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/how-to-center-date/#post-3824155)
 * Ahh works perfectly! Thank you!
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [how to center date](https://wordpress.org/support/topic/how-to-center-date/)
 *  Thread Starter [vyww](https://wordpress.org/support/users/vyww/)
 * (@vyww)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/how-to-center-date/#post-3824132)
 * Sorry what do you mean?
 * [Here’s my blog post.](http://vyww.co/136/)
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [images side by side in div](https://wordpress.org/support/topic/images-side-by-side-in-div/)
 *  Thread Starter [vyww](https://wordpress.org/support/users/vyww/)
 * (@vyww)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/images-side-by-side-in-div/#post-3823787)
 * I’m afraid I have no idea, but my header.php is [here](https://dl.dropboxusercontent.com/u/48849285/headerphp.txt).
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [images side by side in div](https://wordpress.org/support/topic/images-side-by-side-in-div/)
 *  Thread Starter [vyww](https://wordpress.org/support/users/vyww/)
 * (@vyww)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/images-side-by-side-in-div/#post-3823785)
 * Yeah I do
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [images side by side in div](https://wordpress.org/support/topic/images-side-by-side-in-div/)
 *  Thread Starter [vyww](https://wordpress.org/support/users/vyww/)
 * (@vyww)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/images-side-by-side-in-div/#post-3823783)
 * Yep that’d be great!
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [images side by side in div](https://wordpress.org/support/topic/images-side-by-side-in-div/)
 *  Thread Starter [vyww](https://wordpress.org/support/users/vyww/)
 * (@vyww)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/images-side-by-side-in-div/#post-3823780)
 * There’s a test post [here](http://vyww.co/136/). Thank you!
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [images side by side in div](https://wordpress.org/support/topic/images-side-by-side-in-div/)
 *  Thread Starter [vyww](https://wordpress.org/support/users/vyww/)
 * (@vyww)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/images-side-by-side-in-div/#post-3823778)
 * The `<p class="halfeach">` is not applied to the images.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [images side by side in div](https://wordpress.org/support/topic/images-side-by-side-in-div/)
 *  Thread Starter [vyww](https://wordpress.org/support/users/vyww/)
 * (@vyww)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/images-side-by-side-in-div/#post-3823775)
 * Sorry I’m not too sure how to do that, could you tell me the steps? Thank you!

Viewing 15 replies - 1 through 15 (of 26 total)

1 [2](https://wordpress.org/support/users/vyww/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/vyww/replies/page/2/?output_format=md)