WordPress.org

Ready to get started?Download WordPress

Forums

WP-TopBar
[resolved] How to have multiple links in the header ? (16 posts)

  1. Olivier Jarfas
    Member
    Posted 1 year ago #

    Hi there,
    Your plugin is really great, far better than everything else i've seen in the same category!

    I would have one question: I would like to be able to insert several links in the header as i will use it to link together several websites of the society i'm working for. My goal is to have something like this in the end : http://www.finadorm.com/

    Is there an easy way to do that ?

    Thanks a lot,

    Olivier

    http://wordpress.org/extend/plugins/wp-topbar/

  2. Bob
    Member
    Plugin Author

    Posted 1 year ago #

    Oliver,

    You can try adding this to the "Message" on the "TopBar Text & Image" option page.

    You'll need to mess with your css so that it lines up correctly.

    <ul class=''><li><strong>Groupe FINADORM</strong></li><li class='ftb_sep'>-</li><li><a id='ftb_finadorm' href='http://www.finadorm.com/' title='Finadorm' class='current'>Finadorm</a></li><li class='ftb_sep'>-</li><li><a id='ftb_chalets-fabre' href='http://www.chalets-fabre.com/' title='Chalets Fabre'>Chalets Fabre</a></li><li class='ftb_sep'>-</li><li><a id='ftb_fabre-sicob' href='http://www.fabre-sicob.com/' title='Fabre SICOB'>Fabre SICOB</a></li><li class='ftb_sep'>-</li><li><a id='ftb_mader' href='http://www.mader-couverture.com/' title='Mader'>Mader</a></li><li class='ftb_sep'>-</li><li class='ftb_menu'><a id='ftb_socofal' href='http://www.socofal.fr/' title='Socofal'>Socofal</a><div class='ftb_items'><a id='ftb_memonat' href='http://www.memonat.com/' title='MémoNat'>MémoNat</a> <a id='ftb_technilat' href='http://www.sommier-matelas.com/' title='Technilat'>Technilat</a></div></li><li class='ftb_sep'>-</li><li><a id='ftb_mathou' href='http://www.mathou.com/' title='Mathou'>Mathou</a></li><li class='ftb_sep'>-</li><li><a id='ftb_louisiane-fmi' href='http://www.louisiane-fmi.com/' title='Louisiane'>Louisiane</a></li></ul>

  3. Bob
    Member
    Plugin Author

    Posted 1 year ago #

    Version 4.15 is up with an option to add PHP. You can then create your multiple links that way.

  4. Olivier Jarfas
    Member
    Posted 1 year ago #

    Hi,

    Thanks a lot for your great answer and update! That was very helpful and even if i'm not a developer (i can't deal with php and i had to simplify your code to be able to make it work) i got to some effective results.

    The one problem i have now is that i can't make the links work: they all redirect to http://www.my-first-website.com/'http://www.the-website-i-want-to-link.com'/
    See what i mean ? All the links contain the link to the first website+'second website'. And of course, it's a 404 error.

    Do you have any idea where the problem is coming from ?
    Thanks a lot one more time!

  5. Bob
    Member
    Plugin Author

    Posted 1 year ago #

    I need to see how you've set that up.

    Can you reply with a copy/paste of the message and link text and link settings you have?

  6. Olivier Jarfas
    Member
    Posted 1 year ago #

    Of course:

    I have this in the Message:

    <strong>Groupe ACI OUTREMER</strong>       
    <a href='http://www.hbc-capital.com'>HBC Capital</a>       
    <a href='http://www.villagedelapointe.com/'>Village de la Pointe</a>       
    <a href='http://www.domainedelavalette.com/'>Domaine de la Valette</a>       
    <a href='http://www.panier-outremer.com/'>Panier Outremer</a>

    I have nothing in the Link Text & Link spaces. The Link Target is set to blank and i have no image. I'm sorry it must be a quite simple mistake but i can't solve it by myslelf..

    Thanks a lot!

  7. Bob
    Member
    Plugin Author

    Posted 1 year ago #

    Try putting this in the Link Text:
    Groupe ACI OUTREMER

    Put your website address in the Link Address

    Set it to "Self"

    Keep the Message blank.

    Put this in the new PHP Suffix Section:

    echo "</br></br>
    <a href='http://www.hbc-capital.com'>HBC Capital  </a>
    <a href='http://www.villagedelapointe.com/'>Village de la Pointe  </a>
    <a href='http://www.domainedelavalette.com/'>Domaine de la Valette  </a>
    <a href='http://www.panier-outremer.com/'>Panier Outremer</a>";

    You'll need to play with the html above to make it look like you want.

  8. Olivier Jarfas
    Member
    Posted 1 year ago #

    Hi there,

    Thanks a lot again for your quick reply. I did everything as you said. The situation is that it works now ... but only in the preview mode (in the extension settings).

    I have everything working well in the preview (links working etc) but no topbar at all on the real website. Do you have an idea why ?

  9. Bob
    Member
    Plugin Author

    Posted 1 year ago #

    Can you export your TopBars (in sql format) and email them to me? My email address is in the readme.txt file.

    Also, what is your URL? I can see if there are an java/html errors.

  10. Olivier Jarfas
    Member
    Posted 1 year ago #

    Hi there,

    I'm very sorry, i must be blind or something, i can not find any email address in the readme.txt file. Can you tell me where to search for it ?
    Thanks a lot

  11. Bob
    Member
    Plugin Author

    Posted 1 year ago #

    My bad-- it is in wp-topbar.php

  12. Olivier Jarfas
    Member
    Posted 1 year ago #

    Hi,

    I'm sorry but still can't find it.. I do not see any wp-topbar.php file.. Can you help me with that ? Thanks!

  13. Bob
    Member
    Plugin Author

    Posted 1 year ago #

  14. Bob
    Member
    Plugin Author

    Posted 1 year ago #

    Closing - no response in over a week.

  15. Olivier Jarfas
    Member
    Posted 1 year ago #

    Yep, sorry, i give up. I got mailer daemon every time when i try to write to the adress i got.. Just too complicated. But good luck for the future

  16. Johanhorak
    Member
    Posted 1 year ago #

    I have come across another not so neat looking Top Bar that allows for the selection of a WordPress menu in the top bar. Here's support post where you can get more and where I am asking @rfgoetz to look into it for us.

    http://wordpress.org/support/topic/additional-options-add-wp-menu-only-show-on-scroll?replies=1#post-4243271

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic