Skip to:
Content
Pages
Categories
Search
Top
Bottom

Real name H2 tag not displaying


  • Andres Felipe
    Participant

    @naturalworldstm

    Hi

    I just update BP to 1.7.2 and is awesome! thanks to all for this work. Saddly since the update the Real name (in past versions an H2 tag) is not being displayed in bp header, the other info (username, active since… and last activity) is ok. Any idea?

    Thanks in advance!

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

  • @mercime
    Participant

    @mercime

    @naturalworldstm what theme are you using? Change to Twenty Twelve theme or BP Default and the username shows up, correct?


    Andres Felipe
    Participant

    @naturalworldstm

    Hi @mercime and thanks for your quick reply

    I’m using a custom Artisteer theme. After change to BP Default the h2 tag is ok but in this theme just doesn’t shows up. It’s like the h2 tag were not declarated.

    This is my header code in case this could help:

    <div id="item-header" role="complementary">
    <div id="item-header-avatar">
    	<a href="http://site.com/red-social/miembros/quehaypahacer/">
    		<img src="http://site.com/wp-content/uploads/avatars/1/d0733fbcac7e6b0d98c9d144758a2621-bpfull.jpg" class="avatar user-1-avatar avatar- photo colorbox-manual" width="150" height="150" alt="Foto del perfil de Qué hay pa' hacer" rel="user_1" style="">
    	</a>
    </div><!-- #item-header-avatar -->
    <div id="item-header-content">
    	<h2 class="user-nicename">@quehaypahacer</h2>
    	<span class="activity">activo hace 39 segundos</span>
    								<span id="bp-verified"><img src="http://site.com/wp-content/plugins/BuddyVerified-master//images/1.png" class="colorbox-manual">
    							<span class="v-text"> </span></span>
    		<span class="cubepoints_buddypress">919 Pesos Tulueños</span>
    			<span class="cupepoints_buddypress_rank">Rango - 15% Tulueñ@</span>
    	<div id="item-meta">
    			<div id="latest-update">
    				bla bla bla <a href="http://site.com/red-social/actividad/p/361/"> Ver</a>
    			</div>
    		<div id="item-buttons">
    		</div><!-- #item-buttons -->
    	</div><!-- #item-meta -->
    </div><!-- #item-header-content -->

    Thanks for your help!


    Andres Felipe
    Participant

    @naturalworldstm

    UPDATE

    There is something happening with <Hx> tags because in members directory and groups directory (H3), the page title and create a group button there are not showing up neither.


    @mercime
    Participant

    @mercime

    @naturalworldstm BuddyPress uses your theme’s page.php file for Theme Compatibility. If the page title, the_title() , is not within the WordPress Loop, then you won’t see the “Create Blog” nor “Create Group” buttons as well as the Nice Names.


    Andres Felipe
    Participant

    @naturalworldstm

    @mercime as I can see, my page.php calls another file named content-page.php and this file have this:

    <?php
    /**
     *
     * content*.php
     *
     * The post format template. You can change the structure of your posts or add/remove post elements here.
     * 
     * 'id' - post id
     * 'class' - post class
     * 'thumbnail' - post icon
     * 'title' - post title
     * 'before' - post header metadata
     * 'content' - post content
     * 'after' - post footer metadata
     * 
     * To create a new custom post format template you must create a file "content-YourTemplateName.php"
     * Then copy the contents of the existing content.php into your file and edit it the way you want.
     * 
     * Change an existing get_template_part() function as follows:
     * get_template_part('content', 'YourTemplateName');
     *
     */
    global $post;
    theme_post_wrapper(
    		array(
    			'id' => theme_get_post_id(),
    			'class' => theme_get_post_class(),
    			'title' => theme_get_meta_option($post->ID, 'theme_show_page_title') ? get_the_title() : '',
    			'heading' => theme_get_option('theme_single_article_title_tag'),
    			'before' => theme_get_metadata_icons('edit', 'header'),
    			'content' => theme_get_content()
    		)
    );
    ?>

    It would be possible this get_the_title() instead of the_title() is causing the conflict and how can I solve it?

    Thanks for your time!


    @mercime
    Participant

    @mercime

    @naturalworldstm geez. I would experiment and save the original content-page.php file as content-page-orig.php and then create own content-page.php file containing straightforward html with WP loop and template tags.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Real name H2 tag not displaying’ is closed to new replies.
Skip to toolbar