Resolved :) I cannot see the complete header php code using Textedit (mac os).
-
Hello,
I´m trying to edit the header of mi site but i cannot find the header php code, in the header.php file of bp-default theme says this.`> id=”bp-default”>
false, ‘menu_id’ => ‘nav’, ‘theme_location’ => ‘primary’, ‘fallback_cb’ => ‘bp_dtheme_main_nav’ ) ); ?>`
Please can someone explain to me this ?
thanks
-
`’menu_id’ => ‘nav’, ‘theme_location’ => ‘primary’, ‘fallback_cb’ => ‘bp_dtheme_main_nav’ ` pertains to the adoption of the wp_nav_menu function which allows users to create their own menu. This falls back to wp_page_menu and bp_nav_menu.
https://codex.buddypress.org/extending-buddypress/how-to-set-up-your-main-site-navigation-using-the-built-in-wordpress-menus/Thanks for your reply.
But where is the php file that´s contains the header code? i can not find it.header.php contains the header code. wp-content/plugins/buddypress/themes/bp-default
Look in header.php of your theme , the code in header.php is look like that
Code:<?php
/**
* theme theme_name
*
* @package packagename
* @subpackage subpackagename
* @since my HTML 5 theme
*/
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta http-equiv="content-type" content="<?php bloginfo(‘html_type’) ?>; charset=<?php bloginfo(‘charset’) ?>" />
<title><?php bp_page_title() ?></title>
<meta name="home" content="<?php bloginfo(‘url’) ?>" />
<meta name="url" content="<?php bloginfo(‘wpurl’) ?>" />
<?php do_action( ‘bp_head’ ) ?><?php if ( function_exists( ‘bp_sitewide_activity_feed_link’ ) ) : ?>
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo(‘name’);?> | <?php _e(‘Site Wide Activity RSS Feed’, ‘buddypress’ ) ?>" href="<?php bp_sitewide_activity_feed_link() ?>" />
<?php endif;?><?php if ( function_exists( ‘bp_member_activity_feed_link’ ) && bp_is_member() ) : ?>
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo(‘name’);?> | <?php bp_displayed_user_fullname() ?> | <?php _e( ‘Activity RSS Feed’, ‘buddypress’ ) ?>" href="<?php bp_member_activity_feed_link() ?>" />
<?php endif;?><?php if ( function_exists( ‘bp_group_activity_feed_link’ ) && bp_is_group() ) : ?>
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo(‘name’);?> | <?php bp_current_group_name() ?> | <?php _e( ‘Group Activity RSS Feed’, ‘buddypress’ ) ?>" href="<?php bp_group_activity_feed_link() ?>" />
<?php endif;?><link rel="alternate" type="application/rss+xml" title="<?php bloginfo(‘name’);?> <?php _e( ‘Blog Posts RSS Feed’, ‘buddypress’ ) ?>" href="<?php bloginfo(‘rss2_url’);?>" />
<link rel="alternate" type="application/atom+xml" title="<?php bloginfo(‘name’);?> <?php _e( ‘Blog Posts Atom Feed’, ‘buddypress’ ) ?>" href="<?php bloginfo(‘atom_url’);?>" />
<link rel="pingback" href="<?php bloginfo(‘pingback_url’);?>" />
<?php wp_head();?>
</head><body <?php body_class() ?> id="bp-default">
<?php do_action( ‘bp_before_header’ ) ?>
..…
<:!– header content –>
….<?php do_action( ‘bp_after_header’ ) ?>
<?php do_action( ‘bp_before_container’ ) ?>Thanks for all the answers.
I´m using bp-default theme with the child theme that i have created just with the files that i have modified,
So I just have style.css in my-child-theme folder and the file called header.php from bp-default just says this.
`> id=”bp-default”>false, ‘menu_id’ => ‘nav’, ‘theme_location’ => ‘primary’, ‘fallback_cb’ => ‘bp_dtheme_main_nav’ ) ); ?>`
I have checked the previous answers but i could not find the header code.
I want to be able to edit things like sites title, etc…
thanks!Thanks aces, maybe i´m a little bit slow , but my /bp-themes/bp-default/header.php says just what I wrote before, I download another copy of buddypress to see if it was different but is the same file that I have described to you.
Should I copy the code that you send me, in my header.php file?
Thank you!I just downloaded a copy of buddypress from the ‘Manual Download’ button on https://buddypress.org/download/ and it was the same as my svn link above.
If your file is different, then there may be other files that are also different!
Finally I`ve found the problem, I was editing the header.php with TextEdit (mac os) ,
With dreamweaver the file is showing correctly ,
TextEdit needs some extra configuration to show html files, It is necessary to check in the preferences
—-“When opening a file”: Ignore rich text commands in HTML files
thanks to mercime , @modemlooper, megainfo and aces!!!!!
- The topic ‘Resolved :) I cannot see the complete header php code using Textedit (mac os).’ is closed to new replies.