BuddyDev

Search

[Resolved] Widget Format

  • Participant
    Level: Enlightened
    Posts: 36
    Mike Daugherty on #4782

    Is there a way to display the media in the widget in 2 columns and may be change to left-justified?

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 2908
    Ravi on #4783

    Hi Mike,

    Thank you for posting here. You need to modify the template file file. Just follow the steps below

    Step 1: Copy the template file to the theme folder following will be the expected file url

    From
    “wp-content/plugins/mediapress/templates/mediapress/default/widgets/grid-photo.php”

    To
    “wp-content/themes/current-theme/mediapress/default/widgets/grid-photo.php”

    Step 2: modify the following section of the template

    
    <div class="<?php mpp_media_class( 'mpp-widget-item mpp-widget-photo-item '. mpp_get_grid_column_class( 1 ) );?>">
    

    to

    
    <div class="<?php mpp_media_class( 'mpp-widget-item mpp-widget-photo-item '. mpp_get_grid_column_class( 2 ) );?>">
    

    it will build the the two column layout. Please let me know it it works or not.

    Thank You
    Ravi

  • Participant
    Level: Enlightened
    Posts: 36
    Mike Daugherty on #4786

    Ravi,

    I find no widgets folder in the destination path. The last folder is the default folder with a widgets file contained therein.

    Thanks,

    Mike

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 2908
    Ravi on #4788

    Hi Mike,

    You have to create in your current theme. You have to create Folder like first folder with name ‘mediapress’ into this folder create another folder one with name “default” then folder with name “widget and copy the “grid-photo.php” into it and modify it.

    Thank You
    Ravi

  • Participant
    Level: Enlightened
    Posts: 36
    Mike Daugherty on #4793

    Ravi,

    I can’t seem to create the widgets folder in the destination path. I can’t get it to work

    Thanks,

    Mike

  • Keymaster
    (BuddyDev Team)
    Posts: 24149
    Brajesh Singh on #4798

    Hi Mike,Please wait. Let me see if we can do it without any modification using pure css and some filters. I will update tonight if we can do that or not.

    PS: Thank you Ravi for the support here.

    Brajesh

  • Participant
    Level: Enlightened
    Posts: 36
    Mike Daugherty on #4806

    Will do Brajesh – Thanks.

  • Participant
    Level: Enlightened
    Posts: 36
    Mike Daugherty on #4837

    Brajesh,

    Any luck with this?

    Thanks,

    Mike

  • Keymaster
    (BuddyDev Team)
    Posts: 24149
    Brajesh Singh on #4839

    Hi Mike,
    Please put this css in your theme’s css file

    
    @media screen and (min-width: 767px){
    	.widget_mpp_media_list_widget .mpp-u-24-24{
    		width: 50% !important;
    	}
    	.widget_mpp_media_list_widget .mpp-widget-item{
    		text-align: left;
    	}
    }
    

    Please let me know if it works for you or not?

    Thank you
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 36
    Mike Daugherty on #4846

    Brajesh,

    That worked perfectly! With setting the width at 50% it achieved the look I wanted with the images in the sidebar. The text looks better centered, so in doing a little testing I found the text alignment unnecessary and removed it since centered appears to be the default alignment.

    I think this achieves a better and more compact look in the sidebar. Have a look:

    http://carguysandgals.com/activity/

    What would I need to change to achieve the same result in the gallery widget?

    Thanks,

    Mike

The topic ‘ [Resolved] Widget Format’ is closed to new replies.

This topic is: resolved