WordPress.org

Ready to get started?Download WordPress

Forums

Magazine Basic
[resolved] header.php not working on buddypress pages (6 posts)

  1. kvschwartz
    Member
    Posted 11 months ago #

    When I update the header to contain my own menu, it breaks into an bulleted list with little style on the buddypress pages.

    Where can I go from here?

    Thank you

  2. Jesin A
    Member
    Posted 11 months ago #

    It could be that the CSS class is different on those pages. Please post your site's URL.

  3. kvschwartz
    Member
    Posted 11 months ago #

  4. Jesin A
    Member
    Posted 11 months ago #

    The problem is because of relative paths.

    On line 128 of http://kvscreative.com/creativene/ there is a stylesheet

    <link rel="stylesheet" type="text/css" href="css/style.css">

    This stylesheet provides style to the #menu element.

    This file is at http://kvscreative.com/creativene/css/style.css

    But when accessing http://kvscreative.com/creativene/register-2/ the browser requests this file at

    http://kvscreative.com/creativene/register-2/css/style.css

    due to the relative path. Since that file is not present there no styles are applied to #menu.

    To fix this use an absolute path

    <link rel="stylesheet" type="text/css" href="http://kvscreative.com/creativene/css/style.css">

    The image shown before each submenu item also has relative paths. Take the Artists menu as an example.

    <li class="has-sub">
    	<a href="artists.html">
    		<span>Artists</span>
    	</a>
    	<ul>
    		<li class="last">
    			<a href="#">
    				<span>
    					<img src="images/icons/male.png">Artist Name
    				</span>
    			</a>
    		</li>
    	</ul>
    </li>

    The absolute path to male.png is http://kvscreative.com/creativene/images/icons/male.png

  5. kvschwartz
    Member
    Posted 11 months ago #

    thank you so much for your help!

  6. Jesin A
    Member
    Posted 11 months ago #

    You're welcome!

    As I said before you'll have to fix the path of the images next to each submenu item.

Reply

You must log in to post.

About this Theme

About this Topic

Tags

No tags yet.