hugo2808
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Business One Page] Add External Link to OnePage Section MenuHello,
meanwhile I’ve already solved it.
On the header I changed the code for nav to handle my external page css highligth when I’m on it.<nav id="site-navigation" class="main-navigation" role="navigation" itemscope itemtype="https://schema.org/SiteNavigationElement"> <ul> <?php if( ! get_theme_mod( 'business_one_page_ed_home_link' ) ){ if( is_front_page() ){ ?> <li class = "<?php echo esc_attr( 'current-menu-item', 'business-one-page' ); ?>"><a href="<?php echo esc_url( home_url( '#home' ) ); ?>"><?php echo esc_html( $home_link_label ); ?></a></li> <?php }else{ ?> <li><a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php echo esc_html( $home_link_label ); ?></a></li> <?php } } foreach( $enabled_sections as $section ){ if( $section['menu_text'] ){ ?> <li><a href="<?php echo esc_url( home_url( '#' . esc_attr( $section['id'] ) ) ); ?>"><?php echo esc_html( $section['menu_text'] );?></a></li> <?php } } if ( MY_PAGE_ID == get_queried_object_id() ) { $classes = 'class="current-menu-item"'; } ?> <li <?php echo $classes ?>><a href="https://site/product/custport1/">shop</a></li> </ul> </nav>
Forum: Developing with WordPress
In reply to: Add External Link to OnePage Section MenuIt worked perfectly.
It’s simple and does exactly wait I needed.
Thank you so much for your help.Forum: Developing with WordPress
In reply to: Add External Link to OnePage Section MenuThank you very much for your reply.
I getted a little confused, I understood that the standard features forwp_nav_menu()
is not working because I make the menu without it.
I didn’t understand how can I intersept my<li id ="shopitem">
when I press it and give the element the css class whenever I’m on the pages I need.
It must be done on functions.php also I presume.I’ve basic experience in wordpress/php, thank for your help.
Forum: Fixing WordPress
In reply to: WordPress shortcut with jquery load functionApparently I’ve got to include the wordpress strucuture because my file doesn’t load it automatically
require_once('/{WP DIR/wp-load.php');
Forum: Plugins
In reply to: [Custom Content Shortcode] Problem with qTranslateYou are the MASTER! It’s perfect now, with your update it displays the correct language ??
Thank you very much
Forum: Plugins
In reply to: [Custom Content Shortcode] Problem with qTranslateHello Eliot,
I use qTranslate Plus, and in my site https://www.cooltivo.pt/noticias I have putted the shortcode[content id=140]
to display content of post id=140.It shows in fact the post, but in both languages available (pt and en) no matter what language is choosen. It does not choose only the current language for post.
Thanks for your help
HugoForum: Plugins
In reply to: [WooCommerce] Cart with 1 item MAXHi Terry,
thanks a lot for your help and expertize.It works!
Forum: Plugins
In reply to: [WooCommerce] Product page not highlighting in menuI forgot one thing:
Change$item->ID == 106
to
$item->ID == ‘Your Menu Item ID’
Enjoy
Forum: Plugins
In reply to: [WooCommerce] Product page not highlighting in menuI found a solution!
Add this to function.php (child theme always preferable!!)function special_nav_class($classes, $item){ /*Highligth shop menu on woocommerce page templates*/ if (is_woocommerce() && $item->ID == 106) { $classes[] = 'current-menu-item'; } /*Highligth shop menu on checkout page (regular page not include in woocommerce templates)*/ if (is_checkout() && $item->ID == 106) { $classes[] = 'current-menu-item'; } return $classes; } add_filter('nav_menu_css_class' , 'special_nav_class' , 10 , 2);
For more woocommerce functions to get easily object references see this
Forum: Plugins
In reply to: [WooCommerce] Product page not highlighting in menuHi,
did you get a solution for this?
I would like also to have my Menu item “Shop” highlight when I’m in product page and checkout page.Thanks
HugoForum: Everything else WordPress
In reply to: Post Navigation in same Category – No category referenceIt was a conflit with the plugin Intuitive Custom Post Order
Too much time loose with that ?? ??
Forum: Plugins
In reply to: [Custom Content Shortcode] Image LinkYes!! It was it –> Text Editor. I didn’t updated the plugin, so I didn’t read it ??
Excelent, now it works perfect, with [field image-link] or [field thumbnail-link] I get the link to the post by clicking the image..
ExcellentMany thnaks
HugoForum: Plugins
In reply to: [Custom Content Shortcode] Image LinkForum: Plugins
In reply to: [Custom Content Shortcode] Image LinkSorry, what I get in online page is
<a href='https://www.123.net/?p=33'> POST THUMBNAIL </a> title-link
So, the HTML is visible and the image doesn’t provide the link!
Forum: Plugins
In reply to: [Stealth Login Page] Stealth Login 3.0.0 ProblemIt’s strange that the url string works for me with version 2.0.0 and after update to 3.0.0, I get the the same answer and question in the Dashboard automatically, the url is the same, and when I got to it I don’t reach the login page