WordPress.org

Ready to get started?Download WordPress

Forums

How to add home page link on PressPlay 2.1 theme? (15 posts)

  1. kuhashmi
    Member
    Posted 2 years ago #

    I am using PressPlay 2.1. Its looks but i don't how to add home page link on to that theme. I read several articles on that but can't able to that.
    PLZZZ help me.

  2. Gary Darling
    Member
    Posted 2 years ago #

    Some more details would be helpful. Where are you trying to add the link - in the main menu, in a post, in a widget area, or in a template?

  3. kuhashmi
    Member
    Posted 2 years ago #

    I want to add link on template. in a top menu where contact us ,about us, advertising and other main links are appear.

  4. Gary Darling
    Member
    Posted 2 years ago #

    The easiest way would be to have a home page called Home, that would get included automatically if you are using Display list of Pages in PressPlay Options.

    If you don't want that then you need to get your hands dirty. In header.php look for the menu section and add your home link there (this is for a menu above the header image):

    <ul id="page-list">
                    <li><?php echo home_url(); ?></li> <!-- this is your home link -->
    		<?php if($pp_above_header == "above_header_pages"){
    			wp_list_pages('title_li=');
    		} elseif($pp_above_header == "above_header_categories"){
    			wp_list_categories('title_li=');
    		} else { } ?>
    	</ul><!-- #page-list -->

    To do this below the header logo look for a section titled "navigation" in the header file and make a similar change.

  5. Gary Darling
    Member
    Posted 2 years ago #

    Sorry, that code above was done by my evil twin who skipped his morning coffee. Use the code below unless you want to look at ugly text:

    <ul id="page-list">
                    <li class="page-item any-other-class-you-want separated-by-a-space"><a href="<?php echo home_url(); ?>" title="(optional) take me home!">Home</a></li> <!-- this is your home link -->
    		<?php if($pp_above_header == "above_header_pages"){
    			wp_list_pages('title_li=');
    		} elseif($pp_above_header == "above_header_categories"){
    			wp_list_categories('title_li=');
    		} else { } ?>
    	</ul><!-- #page-list -->
  6. kuhashmi
    Member
    Posted 2 years ago #

    Thanks for your help. I add this but it show complete URL . I want to show only HOME text that link to my home page.

  7. Gary Darling
    Member
    Posted 2 years ago #

    The second snippet will do it.

  8. kuhashmi
    Member
    Posted 2 years ago #

    I have some links on my blog with strike through on it. How can i remove that link on a link ?

  9. Gary Darling
    Member
    Posted 2 years ago #

    Use Firebug or Developer Tools in your browser to trace the css, than either modify that css in your style.css file or add custom.css to override it.

  10. kuhashmi
    Member
    Posted 2 years ago #

    I want to put Banner Ad option in a header. Width: 728 Height:90
    How can I do that.

    Here is my blog link: http://www.designsblessing.com/

  11. Gary Darling
    Member
    Posted 2 years ago #

    Take a look at any of the banner ad plugins, see:
    http://wordpress.org/extend/plugins/search.php?q=banner+ads

  12. kuhashmi
    Member
    Posted 2 years ago #

    Thanks for the link. Know another question. In a header i want to put logo image that i have design. Currently it is text base logo. Know in a header file do i need to put HTML img tag to display logo .
    Or how can i display image base logo?
    Can you help .

  13. Gary Darling
    Member
    Posted 2 years ago #

    PressPlay has a Theme Option to add an 80px x 80px logo over the background image, it's in the PressPlay options section called Header.

    If your logo is a different size than 80 x 80, for example 100 x 100, then it may be better to hard-code the image into header.php, at about line 104. Find this:
    <div id="title-logo"></div>
    and add your logo inside that div like so:

    <div id="title-logo">
        <img src="path/to/logo.jpg" alt="my logo" width="100px height="100px" />
    </div>

    And if you want it to be a link to the home page:

    <div id="title-logo">
    <a href="<?php echo get_option('home'); ?>/"><img src="path/to/logo.jpg" alt="my logo" width="100px height="100px" /></a>
    </div>
  14. kuhashmi
    Member
    Posted 2 years ago #

    I am applying google font on post heading but it didn't show any effect on the heading font style. How can i apply google font effect on post title.

  15. Gary Darling
    Member
    Posted 2 years ago #

    You should create a new thread for this topic/question.

Topic Closed

This topic has been closed to new replies.

About this Topic