How to resize newsfeed images in oxwall 1.5

 After I upgraded to oxwall 1.5, I discovered that my newsfeed images appear as a small thumbnail on the newsfeed and enlarges only when clicked. I needed something different so I posted a forum topic on the oxwall forum but the answers I received wasn’t convincing enough, usually, I would either ignore the whole idea and move on but this time I chose to play with custom coding, here is the result.

Re-size Newsfeed Images?
The oxwall newsfeed plugin automatically re-sizes the width of images on the newsfeed to 150px, If you wish to change this and use a custom size simply follow the step to step guide below.

  • Login to your cpanel/ftp
  • Locate ajax_oembed_attachment.html in (/ow_system_plugins/base/views/components)
  • Download this file (for backup purpose)
  • Open/Edit  ajax_oembed_attachment.html
  • Find (use ctr+f for find):

(‘.ow_oembed_attachment’),{width:’150′})

  • Replace the above code with:

(‘.ow_oembed_attachment’),{width:’350′})

  •  Now find (use ctr+f for find):

.ow_oembed_attachment .two_column .attachment_left {
float: left;
max-width: 150px;
margin-right: 8px;
}

  • Replace this code with:

.ow_oembed_attachment .two_column .attachment_left {
float: left;
max-width: 350px;
margin-right: 8px;
}

 

Premium Service

If you seek a custom feature developed for your website or need 24/7 premium support to help you get started with your social network or Skadate dating website, save hours of searching online or wasting money on unnecessary plugins, get in touch with me and let's discuss a suitable plan for your project. Best thing about this service is that you are never placed on hold and get to talk to an expereinced Oxwall/Skadate developer.

Get in Touch

Leave a Reply