Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Featured image not displaying on page

  • @sstanczak

    Participant

    I am trying to display the featured image thumbnail on the main groups page (‘mysite.com/groups’ – site isn’t live yet). I set the featured image in the admin area and it uploaded fine. When I view the page, it doesn’t show though. The featured image displays fine on my bbpress forums page using same method.

    Using current versions of plugins. My theme is a child theme of twenty fourteen which includes add_theme_support( ‘post-thumbnails’ ). Also reverted back to basic twenty fourteen theme with no success. I tried echoing the ‘get_the_post_thumbnail()’ function on some pages but guess I did it wrong.

    Currently stuck…any help appreciated.

Viewing 4 replies - 1 through 4 (of 4 total)
  • @danbp

    Participant

    Do you want this picture as group logo ? Or to just display it on a group page ?

    BP components pages should stay blank, without any page setting like normal WP pages.
    It works on bbp because it’s a “real” static page which let you also handle bbp output with shortcodes. BP pages don’t work like this.

    There was also a kind of experimental plugin in the past:
    https://github.com/hnla/buddypress-group-branding/blob/master/inc/bp/bp-bgb.php

    Other option (premium):

    BuddyGroupHeaders

    @sstanczak

    Participant

    I don’t need the picture as a group logo. I only want the picture on the first groups page, the one that shows all groups. The picture is intended to make it more of a welcome screen to this section of the site. The other groups pages don’t need any header images/featured image.

    Is it possible to add a picture to just the top of the “groups home page”?

    If not, maybe I could just add it to the bottom of the header…

    @shanebp

    Moderator

    Look at this file:
    buddypress\bp-templates\bp-legacy\buddypress\groups\index.php

    Note the 3 action hooks near the top.
    Use one of them to add your image.
    For example:

    function sstan_add_img() { 
       echo '<img src="url to your image">';
    }
    add_action( 'bp_before_directory_groups', 'sstan_add_img' );

    @sstanczak

    Participant

    Thanks…this worked great!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] Featured image not displaying on page’ is closed to new replies.
Skip to toolbar