-
AuthorPosts
-
August 21, 2014 at 5:51 pm #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.
August 22, 2014 at 8:36 am #307654Hey!
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!
JosueAugust 22, 2014 at 2:58 pm #307876BIG 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.
August 22, 2014 at 3:01 pm #307878Hi!
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!
YigitAugust 22, 2014 at 3:23 pm #307899Will 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:
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.
August 22, 2014 at 3:25 pm #307905Hi!
Please see “PUT UBERMENU SHORTCODE HERE” in Josue’s code. You should replace it with your UberMenu shortcode
Regards,
YigitAugust 22, 2014 at 3:29 pm #307911I 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
August 22, 2014 at 3:38 pm #307919Hey!
Yes, please locate the file via FTP and undo the changes you made
Best regards,
YigitAugust 25, 2014 at 6:03 pm #308928revisiting 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?
August 25, 2014 at 7:06 pm #308947Hey!
In the functions.php file, this one:
Regards,
JosueAugust 25, 2014 at 11:28 pm #309004great…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!
August 26, 2014 at 12:04 am #309014Hi!
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.
August 26, 2014 at 12:23 am #309016seemed to not work?
August 26, 2014 at 1:02 am #309025Hey!
I modified my message, please try it again. Don’t forget to clear up your cache/minification.
Cheers!
JosueAugust 26, 2014 at 3:39 am #309072Almost 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.
August 26, 2014 at 3:54 am #309077You need to set width: 100% to the .ubermenu element:
http://screencast.com/t/dSwyVMRCtYuAugust 26, 2014 at 4:06 am #309083I apologize if I am missing something but isn’t the 100% width already included in the code you modified?
August 26, 2014 at 4:19 am #309088Hey!
It is but for some reason it wasn’t being included in your stylesheet file. I see that now is fixed.
Best regards,
JosueAugust 27, 2014 at 6:11 pm #309979ok…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!.
August 27, 2014 at 7:01 pm #310011Your website is not loading for me right now.
August 27, 2014 at 7:35 pm #310027Working on my end…I did change the access password which I updated in my first post
August 27, 2014 at 7:40 pm #310034Ok…I didn’t change anything and now it is working??????? Only thing now is creating a whites pace between the menu and article image.
August 27, 2014 at 11:19 pm #310088Hey!
Try adding this code to the Quick CSS:
.single-post .content { padding-top: 100px !important; }
Cheers!
JosueAugust 27, 2014 at 11:39 pm #310099worked like a charm..thanks again for all your help
August 27, 2014 at 11:45 pm #310106You are welcome, glad we could help :)
Regards,
Josue -
AuthorPosts
- You must be logged in to reply to this topic.