Wrap Title and Body next to Portfolio Graphic

daxter's picture
daxter
Sun, 01/29/2017 - 20:25
#1
Wrap Title and Body next to Portfolio Graphic

I am running into some issues wrapping the text to the right of smaller portfolio graphics. Is there an easy way to do this? Reference staging.furfest.org in the portoflio section for an example with any of the graphics that are not the stock photos. I'd like to see the text and the title to the right of the photo. Is that possible?

phuonght's picture
phuonght
Wed, 02/01/2017 - 23:20

Hi,

Is this what you mean? https://i.imgur.com/Jbn5aP8.png

You can please take a look at code in file sites / all / themes / md_max / templates / node / node--blog--full.tpl.php,

wrap title with body as below:

<div class="col-md-6">
<?php print $title; ?>
<?php print $content['body']; ?>
</div>

and filed media

<div class="col-md-6">
<?php print $content['field_blog_multimedia']; ?>
</div>

no need to add image to body. 

Also, we think you can please do some customization for your portfolio. 

daxter's picture
daxter
Fri, 02/03/2017 - 18:12

I do not seem to have a nodes folder in my installation? Could this be the path for another theme?

phuonght's picture
phuonght
Sun, 02/05/2017 - 22:30

Please make sure that you are using latest version of theme (you can check or download update theme in your account page http://megadrupal.com/user/daxter). 

Also, please remember to backup before doing anything. 

daxter's picture
daxter
Tue, 02/14/2017 - 01:34

The above image is what I'm looking for, but I've ensured that Max is the latest version. 

The instructions you provided ask for a path that's not included in this theme, and is also for the blog when I'm looking for the information for the portfolio.

I found the path "sites/all/themes/md_max/templates/views/portfolio" And there is 4 files:

  • view-view-list-max-portfolio-filter.tpl.php

  • views-view-unformatted--max-portfolio-col2.tpl.php

  • views-view-unformatted--max-portfolio-col3.tpl.php

  • views-view-unformatted--max-portfolio-col4.tpl.php

I think this is where I'm supposed to be, but what is the proper code wrap for those pages?

Col4.tpl.php contains:

<?php/**
* @file
* Default simple view template to display a list of rows.
*
* @ingroup views_templates
*/
?>
<div class="wrap clearfix inner-content">
<div class="twelvecol first clearfix main"> <div class="status-publish hentry clearfix"> <div class="entry-content clearfix"></div>
</div>
</div>
</div>
<div class="full default">
<?php print views_embed_view('max_portfolio_filter'); ?>
<div class="portfolio4c portfolio-container">
<?php foreach ($rows as $id => $row): ?>
<?php ($classes_array[$id]) ? print '<div class="' . $classes_array[$id] . '">' : FALSE; ?>
<?php print $row; ?>
<?php ($classes_array[$id]) ? print '</div>' : FALSE; ?>
<?php endforeach; ?>
</div>
</div>

<div>
<div class="wrap clearfix">
<div> <div class="entry-content clearfix"></div>
</div>
</div>
</div>
Log in or register to post comments
Have More Idea?

We are here to build your website!

No Universal solution fits all special business requirements. Our experienced team is ready with ideas and state-of-the-art technical solutions to consult the best solution within your budget.