Viewing 25 posts - 1 through 25 (of 25 total)
  • Author
    Posts
  • #307469

    Hello….currently the menu (ubermenu) I am using on my site is embedded in a code block within a color section (on all pages). This is on every page; however when you go to the articles tab on the main menu….click it….and than choose one of the articles to read (blog); you’ll see there is no main menu on the top. Additionally I don’t know how to imbed the menu on these pages (blogs) like I have on other pages since it is set up as a blog. Any help/advice/quick CSS on how to incorporate the imbedded ubermenu on these pages (blogs) would be greatly appreciated.

    • This topic was modified 10 years, 3 months ago by mattmosman.
    #307654

    Hey!

    Try adding this at the very end of your theme functions.php file:

    function custom_func() {
    	if (is_singular('post')){
                  echo do_shortcode("[PUT UBERMENU SHORTCODE HERE]");
            }
    }
    add_action('ava_after_main_container', 'custom_func');

    Cheers!
    Josue

    #307876

    BIG PROBLEMS!!!!!!!!!!! Tried this code and now the entire site is not functioning. Getting the white screen of death on everything. Please tell me this can be fixed. Login takes me to white screen….PLEASE HELP!

    • This reply was modified 10 years, 3 months ago by mattmosman.
    #307878

    Hi!

    Please remove the code from functions.php file via FTP. Can you paste the code you have added to functions.php file on http://pastebin.com/ and post the link here?

    Cheers!
    Yigit

    #307899

    Will do…the code I added was the one Josue provided and added in the location he specified. Please tell me my site is not lost….here is the code from pastebin.com…hope this is what you are looking for:

    http://pastebin.com/XysyV0mC

    Just thinking now that I put this code in the theme.php instead on the fucntions.php…I think I misunderstood Josue’s message

    • This reply was modified 10 years, 3 months ago by mattmosman.
    #307905

    Hi!

    Please see “PUT UBERMENU SHORTCODE HERE” in Josue’s code. You should replace it with your UberMenu shortcode

    Regards,
    Yigit

    #307911

    I did do that…but think the mistake I made was putting the code in the theme.php instead of the functions.php. At this point all I need to know is if I am able to recover my site by removing that code from the theme.php

    #307919

    Hey!

    Yes, please locate the file via FTP and undo the changes you made

    Best regards,
    Yigit

    #308928

    revisiting this idea again…my question is this….do I paste this code in the theme functions php or the functions-enfold.php within the wordpress editor?

    #308947

    Hey!

    In the functions.php file, this one:

    Regards,
    Josue

    #309004

    great…I used the code and it worked…the only thing I changed was the custom_func to custom_mosman_function. My last question is what quick css can I use to make this menu sticky like the menu on the rest of the pages? Thanks again for all your help!

    #309014

    Hi!

    Try with this code:

    @media only screen and (min-width: 767px) {
    .single-post .ubermenu {
        width: 100%;
        position: fixed;
        -webkit-backface-visibility: hidden;
        -moz-backface-visibility: hidden;
        -webkit-transform: translate3d(0, 0, 0);
        -moz-transform: translate3d(0, 0, 0)
    }
    .single-post .header-scrolled + #main .ubermenu{
        top: 61px;
    }
    }

    Cheers!
    Josue

    • This reply was modified 10 years, 3 months ago by Josue.
    #309016

    seemed to not work?

    #309025

    Hey!

    I modified my message, please try it again. Don’t forget to clear up your cache/minification.

    Cheers!
    Josue

    #309072

    Almost there…it works for the most part but only half the menu appears sticky when scrolling down the page. It is perfectly fine if only half the logo appears sticky when scrolling down (like on all the other pages) but would like the whole menu to show.

    • This reply was modified 10 years, 3 months ago by mattmosman.
    #309077

    You need to set width: 100% to the .ubermenu element:
    http://screencast.com/t/dSwyVMRCtYu

    #309083

    I apologize if I am missing something but isn’t the 100% width already included in the code you modified?

    #309088

    Hey!

    It is but for some reason it wasn’t being included in your stylesheet file. I see that now is fixed.

    Best regards,
    Josue

    #309979

    ok…so I entered this code again and the problem I am having is as I scroll down the page only half the menu appears. When you go to the site click on the articles/news menu tab….than click read article. You will see what I am talking about. I would also like a white space between the image at the top and the menu bar. Any ideas? Thanks in advance for all your help/work!.

    #310011

    Your website is not loading for me right now.

    #310027

    Working on my end…I did change the access password which I updated in my first post

    #310034

    Ok…I didn’t change anything and now it is working??????? Only thing now is creating a whites pace between the menu and article image.

    #310088

    Hey!

    Try adding this code to the Quick CSS:

    .single-post .content {
        padding-top: 100px !important;
    }

    Cheers! 
    Josue

    #310099

    worked like a charm..thanks again for all your help

    #310106

    You are welcome, glad we could help :)

    Regards,
    Josue

Viewing 25 posts - 1 through 25 (of 25 total)
  • You must be logged in to reply to this topic.