Show Sidebar Log in
Commons In A Box Logo
  • Home
  • About
    • Project Team
    • Logos and Graphics
  • Showcase
    • CBOX Classic Showcase
    • CBOX OpenLab Showcase
  • Demo
  • Get Started
  • Documentation
    • Technical Guide
    • CBOX Classic Guide
    • CBOX OpenLab Guide
  • Support Forums
    • CBOX Classic
    • CBOX OpenLab
    • Developers Forum
  • News

Group Admins

  • Profile picture of Scott Voth

CBOX Classic Support

Public Group active 4 months ago

This group provides support for Commons In A Box Classic, our original software for community-building. Register for an account or log in to commonsinabox.org, then join the group and post your question here.

How to add a text in the header right side with logo enabled

Tagged: Site Description, text in the header right side

  • This topic has 0 replies, 1 voice, and was last updated 12 years, 1 month ago by Anonymous.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • March 17, 2013 at 1:16 am #2252
    Anonymous
    Inactive

    Hello,

    I created a Custom Menu item in a header menu to show a text (the site description) on the right side of the header, with a logo enabled on the left side. There is no page and no URL associated to this custom menu item, and the site description appears on the first position of the header menu. The text is also unclickable with no hand when hovering on it.

    But this is not a good solution, because the text of this custom menu item appears on the “Mobile Menu” (the new menu appearing on small sized screens). And this text becomes clickable, and it gives a 404 error page. It seems there’s also no way to remove an item from the Mobile Menu container only.

    So, because the text doesn’t have to be considered as a menu, rather than putting it in a custom menu in header I think developpers would prefer using hooks to insert a text on the right side of the header!

    I am now thinking of adding a php code like this in my child theme’s functions.php file:

    <?php
    /* Site Description in Header Rightside */
    add_filter( ‘header_rightside_text’, ‘description_in_header_rightside’ );
    function description_in_header_rightside() {
    echo ‘<h2 id=”site-description”>TAGLINE ENTERED FROM THE DASHBOARD</h2>’;
    }

    (Of course some CSS must be added after to position the text correctly).

    I’m not sure if “site-description” is in <h2> or <h1> with CBOX environment and I’m not sure if my code is correct or the best one.
    If someone can give an easier code or give the most efficient solution, any help will be appreciated.

  • Author
    Posts
Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.
Log In
Group logo of CBOX Classic Support
  • Home
  • Forum
  • Announcements
  • Docs
  • Members 287
  • Send Invites

Groups

Newest | Active | Popular | Alphabetical
  • Group logo of CBOX Classic Support
    CBOX Classic Support
    287 members
  • Group logo of CBOX Pioneers
    CBOX Pioneers
    71 members
  • Group logo of CBOX Developers
    CBOX Developers
    40 members
  • Group logo of CBOX OpenLab Support
    CBOX OpenLab Support
    22 members
  • Group logo of CBOX-OL Testing Partners
    CBOX-OL Testing Partners
    12 members

CBOX has its roots in the CUNY Academic Commons, which in turn was made possible through funding from The City University of New York itself.

CUNY Logo

CUNY Academic Commons Logo

City Tech logo

The Commons In A Box was made possible through the generous support of the Alfred P. Sloan Foundation.

Alfred P. Sloan Foundation Logo

NEH Logo

The CUNY Graduate Center has directly contributed to the CUNY Academic Commons, housing the project since its inception, and has contributed to CBOX through its GC Digital Initiatives.

CUNY Graduate Center Logo

CUNY Graduate Center Digital Initiatives Logo

Powered by Commons In A Box
css.php
Skip to toolbar
  • About WordPress
    • WordPress.org
    • Documentation
    • Learn WordPress
    • Support
    • Feedback
  • Log In
  • Register