Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #2431

    I am using Levitation and have been able to make some modification thanks to information I have found on this site. But I’m a graphic designer and not a developer. Is it possible to add text below the portfolio boxes? My site is http://www.amicodesign.com. I would like to be able to add a very short description of the project below the portfolio items.

    #37974

    Hey,

    you can try to replace following code in template_portfolio.php

    <?php
    echo '<a href="'.$portfolio_image.'" rel="lightbox[portfolio]"><img class="aligncenter" src="'.$portfolio_image_small.'" alt="" /></a>';

    ?>
    </div><!--end box_small-->

    with:

    <?php
    echo '<a href="'.$portfolio_image.'" rel="lightbox[portfolio]"><img class="aligncenter" src="'.$portfolio_image_small.'" alt="" /></a>';
    the_content('',FALSE,'');
    ?>

    </div><!--end box_small-->

    If you want a read more button just use the_content(); instead of the_content(”,FALSE,”);

    #37975

    Thank you for responding. In the files that have been uploaded to the server, I am not able to find template_portfolio.php

    Could you tell me in which folder I would find it?

    Thanks for any help you can provide.

    #37976

    Hey,

    template_portfolio.php is located in your theme main directory.

    #37977

    Thanks again for your help. I found the file, but now get this when I add the content. What am I doing wrong?? Am I supposed to turn the text into another image to upload or can I type what I need to add in the code you sent?

    Parse error: syntax error, unexpected T_STRING in /home/content/40/5480140/html/betasite/wp-content/themes/themeforest_levitation-wordpress-business-portfolio-4-in-1_60299/levitation/template_portfolio.php on line 45

    Here is the code I inserted:

    <?php
    echo '<a href="'.$portfolio_image.'" rel="lightbox[portfolio]"><img src="'.$portfolio_image_small.'" alt="" /></a>'; the_content('',A shopping plaza wanted to introduce itself and its tenants to neighborhoods in the area. This circular was developed, providing a map, descriptions of the the various businesses and coupons.,''); ?> </div><!--end box_small-->

    It’s probably obvious that I don’t write any code. I appreciate all your help.

    AM

    #37978

    Hey,

    You can’t insert your text content directly into my code – the function I posted above shows the excerpt text of your portfolio entry. So insert following code as it is into template_portfolio.php:

    <?php
    echo '<a href="'.$portfolio_image.'" rel="lightbox[portfolio]"><img class="aligncenter" src="'.$portfolio_image_small.'" alt="" /></a>';
    the_content('',FALSE,'');
    ?>

    </div><!--end box_small-->

    and use any text you want as the post excerpt. Use following tag to seperate excerpt from other content:

    <!--more-->

    i.e. like:

    and I told him that he should get moving or I'd be
    on him like a limpet. He looked at me with shock on
    his face and said

    <!--more-->

    more text content....

    #37979

    Hi this post was exactly what I was looking for. However, after I did the code, the text worked great, but it doubled my posts on the portfolio page. Can you help me figure out why? I tried deleting the page and starting again, nothing has worked. I don’t do much code work so any help you can offer would be great.

Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘Adding text below portfolio pictures’ is closed to new replies.