Tagged: x
-
AuthorPosts
-
May 24, 2016 at 1:07 am #1006639
michaellanfieldParticipantThere are many aspects to the menus I would like to fix.
1. On the topbar I would like first the ABOUT US menu (with sub menus) to be to the far right.
2. Next to the menu to the right I would like the search icon.
3. Next to the search icon to the right I would like the media icons.
All this on one line spaced out.
4. Also get the search icon to work for global site search. Search does not pop out.Now referring to the site http://www.onegreenplanet.org
1. In the sub menus for “about us” when hovering they have a different colour. I would like that for all menus including the topbar menu and primary menu.
2. Instead of having the normal underline hover for main menu I would like it to hover a different colour for entire word box, not text.
3. How to center the entire top primary menu?How to do all of this? Thank you.
May 24, 2016 at 1:08 am #1006641
michaellanfieldParticipantThis reply has been marked as private.May 24, 2016 at 1:37 am #1006665
ChristopherModeratorHi there,
#1 Find and update this code:
.topbar-dropdown { display: inline-block; vertical-align: top; position: relative; float: right; }#2 & #3 Edit topar.php file and put following code:
<div class="topbar-dropdown"> <a href="URL-Goes-Here">Parent Link</a> <ul> <li><a href="URL-Goes-Here">Privacy Policy</a></li> <li><a href="URL-Goes-Here">Sub Link #2</a></li> <li><a href="URL-Goes-Here">Sub Link #3</a></li> </ul> </div>just before this code:
<?php if ( x_get_option( 'x_topbar_content' ) != '' ) : ?> <p class="p-info"><?php echo x_get_option( 'x_topbar_content' ); ?></p> <?php endif; ?>#4 Please update your code to :
<a href="#" class="x-btn-navbar-search"><span><i class="x-icon-search" data-x-icon="" aria-hidden="true"></i><span class="x-hidden-desktop"> Search</span></span></a>#5 You should target menu item IDs and add multiple CSS code, see the attachment.
Please add this CSS code:
li#menu-item-351 a { background: red; } li#menu-item-351 a:hover { background: #000; }#6 Add this as well :
ul#menu-main-menu { display: table; margin: 0 auto; float: none; }Hope it helps.
May 24, 2016 at 1:52 am #1006675
michaellanfieldParticipantwow. screwed everything up. As you can see.
May 24, 2016 at 2:14 am #1006706
Paul RModeratorHi,
Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:
– FTP Host
– FTP Username
– FTP PasswordDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
May 24, 2016 at 2:22 am #1006718
michaellanfieldParticipantThis reply has been marked as private.May 24, 2016 at 2:51 am #1006754
ChristopherModeratorHi there,
Please update your code in _topbar.php to :
<?php // ============================================================================= // VIEWS/GLOBAL/_TOPBAR.PHP // ----------------------------------------------------------------------------- // Includes topbar output. // ============================================================================= ?> <?php if ( x_get_option( 'x_topbar_display', '' ) == '1' ) : ?> <div class="x-topbar"> <div class="x-topbar-inner x-container max width"> <?php wp_nav_menu( array( 'menu' => 'topbar-menu', 'container' => false, 'menu_class' => 'x-nav sf-menu', 'container' => 'div', 'container_class' => 'top-menu', ) ); ?> <?php if ( x_get_option( 'x_topbar_content' ) != '' ) : ?> <p class="p-info"><?php echo x_get_option( 'x_topbar_content' ); ?></p> <?php endif; ?> <?php x_social_global(); ?> </div> </div> <?php endif; ?>Hope it helps.
May 24, 2016 at 10:33 am #1007448
michaellanfieldParticipantsame thing
May 24, 2016 at 1:32 pm #1007710
JadeModeratorHi Michael,
Whenever you click on the search icon link, there is an error in the console that says:
POST http://thevegansandwich.com/wp-admin/admin-ajax.php 500 (Forbidden)Whenever I try to access some admin pages of your website, I get 500 Internal Server error too. We have found that this is typically due to security settings or permissions errors with the server. For this particular situation, you will need to contact your hosting provider and ask them to ensure that your file permissions are set correctly. Additionally, this could be related to a ModSecurity rule being triggered due to a combination of keywords used in the core WordPress files. This should be able to be remedied by writing into the support team at your host and asking them to whitelist the ModSecurity rules on your domain.
As for the topbar file, the filename seems to be incorrect. Kindly rename
file _topbar.phpto_topbar.php.Let us know how it goes.
May 24, 2016 at 1:54 pm #1007737
michaellanfieldParticipantI called my hosting support (hostpapa) and sent them all the details through email. It should be resolved shortly.
May 24, 2016 at 1:56 pm #1007738
michaellanfieldParticipantI find the 500 error seems to happen when there are many plugins added to wordpress and there are some conflicting with each other. When I disable many of them and keep only necessary ones it seems to fix the issue.
May 24, 2016 at 2:57 pm #1007849
JoaoModeratorHi Michael,
In that case let´s also try to improve your PHP memory and it might bring some better performance to your websites.
Would mind adding this in your wp-config.php located at the root directory of your site.
define( ‘WP_MEMORY_LIMIT’, ‘256M’ );
define( ‘WP_MAX_MEMORY_LIMIT’, ‘512M’ );
You can add it before the line/* That’s all, stop editing! Happy blogging. */
Let us know how it goes.
Thanks,
Joao
May 24, 2016 at 3:31 pm #1007899
michaellanfieldParticipantSure thing. Thanks for helping. You guys are amazing.
May 24, 2016 at 3:34 pm #1007908
RahulModeratorYou’re welcome!
May 24, 2016 at 3:49 pm #1007922
michaellanfieldParticipantSo I added the code define( ‘WP_MEMORY_LIMIT’, ‘256M’ );
define( ‘WP_MAX_MEMORY_LIMIT’, ‘512M’ ); to the file. It seems sometimes I get the 500 error, depending on the day time etc. I also think when 2 or more people login and edit the site it also seems to happens that I get the 500 error. So anyways the menus are still not fixed.My site also seems to be a little faster.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1006639 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
