Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #18044

    Hello.

    I want to be able to write text under the picture in my portfolio page. That is, in the main portfolio page where all the info about my work is held. How do I do this?

    Pleas go to the site I’m refering to: http://www.wibe-music.com/?portfolio=lorem-ipsum

    Under the album cower I want to be able to write text.

    #98032

    Hi,

    1) Please copy this chunk of code and put it in your functions.php file at the base of the theme. http://pastebin.com/MQ92bvun The code will add an additional text box all the way at the bottom of your add portfolio item page. You can add the description to go under the images in the portfolio archive page there.

    2) Now please open loop-portfolio.php located inside the /includes/ folder of the theme and paste the following code on line 127

    <div class="nick_prtf_excerpt"><?php echo get_post_meta($post->ID, 'nick_prtf_excerpt', true) ?></div>

    After you paste it, lines 120-132 should look like

    $slider -> setImageSize($image_size);
    if(!empty($avia_config['portfolio_ajax'])) $slider -> set_links(get_permalink());

    echo $slider->display($forceSmall);

    ?>
    <div class="nick_prtf_excerpt"><?php echo get_post_meta($post->ID, 'nick_prtf_excerpt', true) ?></div>
    </div>
    <!-- end post-entry-->
    </div>

    <?php

    Thanks,

    Nick

    #98033

    Ok. I see. This is not exactly what I had in mind.

    The text showed up like this: http://www.wibe-music.com/wp-content/exampletext/notlikethis.png

    I want it to show up like this: http://www.wibe-music.com/wp-content/exampletext/exampletext.png

    The example text in the image is in bright white – just done in Photoshop.

    #98034

    Hi,

    I misunderstood you. I thought you wanted it on the main archive page under each of the images. So lets take the code out from the step 2 from my previous post and leave everything as it was prior to the edit.

    Instead open up the loop-portfolio-single.php located in the same /includes/ folder as the previous file and paste the code

    <div class="nick_prtf_excerpt"><?php echo get_post_meta($post->ID, 'nick_prtf_excerpt', true) ?></div>

    on line 51. I see that you already got something working. You need to use a <div with a class as I have it above, otherwise you will not be able to style and position the output of the field. Try to always use css classes when adding content in order to make life easier later on when you need to style them

    Thanks,

    Nick

    #98035

    Hello, Nick.

    I see your point with the <div class. I tried pasting the code in line 51 of my loop-portfolio-single.php but I got an error message. I’m not shure where to paste it elsewhere. Do you know?

    Underneeth the picture I really want i divederline to go trough the width of the post. Do you know how I can do this?

    #98036

    Hi,

    Hi try line 57 , so that line 56-61 after you pasted looks like

    ?>
    <div class="nick_prtf_excerpt"><?php echo get_post_meta($post->ID, 'nick_prtf_excerpt', true) ?></div>

    </div> <!-- end eight units -->

    To make a horizontal line, you can use one of the following html codes in your template just outside of the php blocks

    <div class="hr hr_flag">    	<span class="primary-background seperator-addon"></span>    	<span class="hr-seperator extralight-border"></span></div>

    or

    <div class="hr hr_flag supersmall ">    	<span class="primary-background seperator-addon"></span>    	<span class="hr-seperator extralight-border"></span></div>

    or (chnage the words between the 4 stars

    <div class="hr hr_flag ">		<div class="primary-background hr_color">    		<span class="flag-text on-primary-color">****PUT WORDS HERE TO SHOW in LINE****</span>    	</div>    	<span class="hr-seperator extralight-border"></span></div>

    or

    <div class="hr hr_invisible"></div>

    Thanks,

    Nick

    #98037

    sorry if I’m a complete idiot now. Where should I put the string for the seperator (hr_flag)? In witch php-file?

    Thanks for great support.

    #98038

    Hi,

    Sorry my mistake. You should put it anywhere in the same file as i reference above. You need to add it somewhere on line 60 or 62 i guess. You can try various places in that file, just remember that half the file is in php and another is in html. Don’t paste the horizontal lines directly into php. All php code is enclosed by the following tags”

    <?php

    ...some code

    ?>

    So before you paste it just keep your eyes out that you are not pasting it in middle of a php block. Anything *outside* the above tags is html and fair game. If there is a problem just revert, but for now try line 60 or line 62,

    Thanks,

    Nick

    #98039

    I’m sorry to say this is not working. I’ve tried pretty much every possible place in the loop-portfolio-single.php outside of the php tags with no luck. Sorry for causing trouble for you.

    I would like a separation line just beneath the picture. Do you have any idea how to make this work?

    Thanks again.

    #98040

    Hi,

    Please find the line below in loop-portfolio-single.php. I tested and it works.

    <?php echo $slideHtml; ?>

    Please *replace* the line above with the following 2 lines below

    <?php echo $slideHtml; ?>
    <?php echo avia_advanced_hr(false, 'small'); ?>

    Your page has over 30 errors from multiple bad ajax connections to the following non existing pages:

    https://keznmtoevg.spotilocal.com:4373/service/version.json?service=remote&ref=http%3A%2F%2Fwww.wibe-music.com%2F&cors=&_=1354121270650

    and

    https://smebagqvpt.spotilocal.com:4373/service/version.json?service=remote&ref=http%3A%2F%2Fwww.wibe-music.com%2F&cors=&_=1354121283714

    I think that underscore in the url doesn’t belong there.

    Thanks,

    Nick

    #98041

    Ok. That’s not good. Do you know how to fix that?

    #98042

    Hi,

    That is not part of the theme, and I am not sure where it is even from, since I never seen anything similar. Facebook related probably. I suggest you check your plugins, as previously recommended. Please setup a fresh install and carefully add the plugins one by one till you unmask the culprit.

    Thanks,

    Nick

    #98043

    Ok I will do that. Thanks.

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

The topic ‘Text under picture portfolio’ is closed to new replies.