WordPress.org

Forums

Tiny Forge
[resolved] Add widget to menu bar (11 posts)

  1. silveriddid
    Member
    Posted 1 year ago #

    Hi again

    I'd like to add my social media icons to the menu bar (or happy if they're static in top right of screen too if easier), is this possible?

    I've created them as a widget

    Many thanks

  2. Tomas Mackevicius
    Member
    Theme Author

    Posted 1 year ago #

    If they are as a widget, you would have to define new widget area in functions.php.

    Most likely an easier way would be to enclose that code in a div put it somewhere in header.php and give it css rules like:

    Fixed Positioning: http://www.w3schools.com/css/css_positioning.asp

    Is it something you would manage to do?

  3. Tomas Mackevicius
    Member
    Theme Author

    Posted 1 year ago #

    Also my advise - create new user with author privileges and assign all posts to it, it is not safe to expose admin account to the public, use it just for the administration.

    You use posts for everything, but for about us, contact and other static info usually pages are used instead of posts. Posts - something that is bound to certain date or something that will be repeated, like events, products, etc.

  4. eabigelow
    Member
    Posted 1 year ago #

    Good advice, and great theme. Do you have an example of either of these, by any chance?

    "If they are as a widget, you would have to define new widget area in functions.php.

    Most likely an easier way would be to enclose that code in a div put it somewhere in header.php and give it css rules like:"

    Thanks for any help!

  5. Tomas Mackevicius
    Member
    Theme Author

    Posted 1 year ago #

    Perhaps like this:

    http://wordpress.org/support/topic/how-to-get-div-code-in-my-header-php-file-to-show-on-every-page?replies=4

    Also, I noticed that dropdown menu gets behind the gallery. Don't worry, with the next version that is coming in a couple of weeks, I will fix that in the main theme.

  6. eabigelow
    Member
    Posted 1 year ago #

    Thanks, Tomas. I will look into this. Much appreciated!

  7. silveriddid
    Member
    Posted 1 year ago #

    (Apologies for late response)

    Thanks loads for the advice Tomas

    I've done all you suggested to stephanieray.net re pages etc.

    The social media icons are now in the header but they're pretty small and purple as opposed to the nice grey ones originally created in the widget.
    (I presume the colour is as they're being recognised as links? but have been unable to change them)

    Can you point me in the right direction please?

    Many thanks

  8. Tomas Mackevicius
    Member
    Theme Author

    Posted 1 year ago #

    You can look at:

    /* Style social icons in the sidebar */
    .widget-area .widget .icon-webfont {
    	width: 24px;
    	width: 1.714285714rem;
    	font-size: 24px;
    	font-size: 1.714285714rem;
    	height: 24px;
    	margin-right: 5px;
    	margin-right: 0.357142857rem;
    }
    .widget-area .widget a:link.icon-webfont,
    .widget-area .widget a:link .icon-webfont,
    .widget-area .widget a:visited.icon-webfont,
    .widget-area .widget a:visited .icon-webfont {
    	color: #777;
    }
    .widget-area .widget a:hover.icon-webfont,
    .widget-area .widget a:hover .icon-webfont,
    .widget-area .widget a:active.icon-webfont,
    .widget-area .widget a:active .icon-webfont {
    	color: #FC9F00;
    }

    You can create a copy of it and replace .widget-area .widget with header related class where you put your icons (or some unique div if you used one).

  9. silveriddid
    Member
    Posted 1 year ago #

    Time to get the professionals in I think! (I'm still too new to WP)

    And cheers for the fix on menu dropdown behind gallery too

    thanks
    Steph

  10. Tomas Mackevicius
    Member
    Theme Author

    Posted 1 year ago #

    Hey, don't give up, it's just a couple of hours of self tutoring about CSS ;)

    Actually being new to WP you did terrific job with that site! It looks like made by PRO, I eve added it in current implementation to Tiny Forge showroom, so really - you did good!

  11. silveriddid
    Member
    Posted 1 year ago #

    Thanks loads, you're too kind! It helps of course having a great theme ;)

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags