Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to customize activity "Load More" button?


  • rogscorp
    Participant

    @rogscorp

    I am using WP 2.9.1 and BP 1.2.2.1

    I am trying to customize “Load More” link in the activity page to other image by changing this part:

    <?php if ( bp_get_activity_count() == bp_get_activity_per_page() ) : ?>

    <li class=”load-more”>

    <?php _e( ‘Load More’, ‘buddypress’ ) ?>   <span class=”ajax-loader”></span>

    <?php endif; ?>

    I thought I could change ‘Load More’ to <img> tag.

    Then the image shows up but the link doesn’t work.

    When I put <img> tag with Load More, it shows both and it seems like they are the same link but image link does not work while Load More text link works.

    It is a complete mystery for me.

    Any help please?

Viewing 2 replies - 1 through 2 (of 2 total)

  • 5887735
    Inactive

    You could just add a background image to the css (.activity-list li.load-more). If you don’t want the text link just add display:block; text-indent:-9999px; to (.activity-list li.load-more a).

    Just a idea.


    rogscorp
    Participant

    @rogscorp

    It’s not working. I’m supposed to change default.css right?

    Do I have to delete some lines after adding that?

    I keep wondering why

    <?php if ( bp_get_activity_count() == bp_get_activity_per_page() ) : ?>

    <li class=”load-more”>

    <?php _e( ‘<img src=”something something’, ‘buddypress’ ) ?>   <span class=”ajax-loader”></span>

    <?php endif; ?>

    doesn’t work. The images shows up but the link doesn’t work. Puzzling.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to customize activity "Load More" button?’ is closed to new replies.
Skip to toolbar