Skip to:
Content
Pages
Categories
Search
Top
Bottom

Can I put a logo in the defult theme

Viewing 5 replies - 1 through 5 (of 5 total)
  • @mercime

    Participant

    == how can I do this using the default theme.==

    1. Create a child theme of bp-default theme. – https://codex.buddypress.org/theme-development/building-a-buddypress-child-theme/

    2. Copy over header.php from bp-default theme – https://buddypress.trac.wordpress.org/browser/tags/1.2.9/bp-themes/bp-default/header.php

    3. Open up header.php and replace the following:
    <h1 id="logo"><a href="" title=""></a></h1>
    with
    <h1 id="logo"><a href="" title=""><img src="/images/logo.png" /></a></h1>

    4. Upload a logo.png or .jpg, etc. to your theme’s images folder

    @naijaping

    Participant

    @mercime, I dont know why this is not working for me, i tried the above code but just show a small broken icon.

    here is my code

    <h1 id="logo"><a href="" title=""><img src="_inc/images/2.jpg" /></a></h1>

    any help will be appreciated

    regards

    @mercime

    Participant

    == <img src="_inc/images/2.jpg" /> ==


    @naijaping
    Missing forward slash before _inc/ So it should be

    <img src="/_inc/images/2.jpg" />

    @naijaping

    Participant

    @mercime , put slash did not work aswell but declaring the whole path like this works well

    <h1 id="logo"><a href="" title=""><img src="http://www.mysite.com/themes/mychildtheme/_inc/images/2.jpg" /></a></h1>

    Any idea on how to style the width and height of the logo and to declare the logo background as transparent.

    sorry to disturb

    @ewebber

    Participant

    @naijaping you’re probably best creating the logo in the size you want it to display and creating a .png with a transparent background – you should try not to use css to change the size of it

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Can I put a logo in the defult theme’ is closed to new replies.
Skip to toolbar