Skip to:
Content
Pages
Categories
Search
Top
Bottom

image.php file for Buddypress theme

  • Profile photo of Famous
    Famous
    Participant

    @famous

    Does anyone have an image.php file for buddypress? One that shows cool thumbnails of next and previous images? Or can you get me started somehow? Thanks for your help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Profile photo of @mercime
    @mercime
    Keymaster

    @mercime

    == thumbnails of next and previous images ==

    @famous next and previous thumbnail images are shown by template tags –
    and

    One quick solution for an image.php file:
    – copy bp-default theme’s index.php and save to your child theme folder
    – open up index.php and replace the following lines:

    Replace

    <div class="entry">
    
    </div>

    With

    <div class="entry">
    ID, 'large' ); ?>
    
    </div>

    Replace

    <div class="navigation">
    <div class="alignleft"></div>
    <div class="alignright"></div>
    </div>

    With

    <div class="navigation">
    <div class="alignleft"></div>
    <div class="alignright"></div>
    </div>

    Replace
    <h2 class="posttitle"><a href=&quot;" rel="bookmark" title=" "></a></h2>
    With
    <h2 class="posttitle"><a href=&quot;post_parent); ?>" rel="attachment">post_parent); ?> </a></h2>

    You can also check out twentyten’s loop-attachment.php to see how image attachments are rendered along with other forms of attachment https://core.trac.wordpress.org/browser/tags/3.1.1/wp-content/themes/twentyten/loop-attachment.php

    Profile photo of Famous
    Famous
    Participant

    @famous

    hello @mercime I didn’t get your reply till much later. I ended up finding what you said above:

    And it worked great, however I have one more situation I was hoping you could help me out with. I want to click:

    <p class="">
    

    the above and have it go to the next picture, instead of just showing the same image on the page only, any idea?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘image.php file for Buddypress theme’ is closed to new replies.