Hi,

How to hide the menu title in the canvas but display it in the main navigation?

Regards,

    Hi aliwari,
    You can add the following folder to the templates\ja_seven\html\layouts\t4 folder, I have removed the following code in the offcanvas.php file, line 65.

    layout.zip
    1kB
    <?php if ($hasLink): ?>
    	  <a href="<?php echo Uri::base(); ?>" title="<?php echo strip_tags($site_name); ?>">
    	  <?php endif; ?>
    	    <?php if ($logo_small) : ?>
    	      <img class="logo-img-sm d-block d-sm-none" src="<?php echo $logo_small; ?>" alt="<?php echo strip_tags($site_name); ?>" />
    	    <?php endif; ?>
    	  	
    	    <?php if ($logo) : ?>
    	      <img class="logo-img<?php echo $logo_sm_cls; ?>" src="<?php echo $logo; ?>" alt="<?php echo strip_tags($site_name); ?>" />
    	    <?php else : ?>
    	     	<?php echo $offcanvas_title; ?>
    	    <?php endif; ?>
    
    	  <?php if ($hasLink): ?>
    	  </a>

      dominic Hi,

      I didn't fully understand your message. I already have the folder "templates\ja_seven\html\layouts\t4"' I'm confused about where to place the mentioned code. Should I create 'offcanvas.php' and insert the code inside? or?

      Regards,

        I don't have offcanvas.php file in "templates\ja_seven\html\layouts\t4"'

        Hi aliwari,
        After reviewing my previous response, I recognized some errors and have made the necessary corrections. Please take a moment to review the updated answer, and feel free to let me know if you have any further questions or concerns. Thank you for your patience

          dominic Hi,

          Thank you for your effort. In fact, my request is not to hide the logo on the canvas. I only need to hide one menu title in the canvas, but I want it to show in the main navigation.

          So is there a way to do that please?

          Regards ,

            Hi aliwari,
            Apologies for any confusion. If you're aiming to remove a menu item within the off-canvas, you can achieve this by adding a custom class to the menu item link.

            Once you've added the class, you can apply the following CSS code to your site to hide the menu item in the off-canvas. If you need further assistance or clarification, feel free to ask!

            div.t4-offcanvas .t4-off-canvas-body li.nav-item a.hidden-this  {
                display: none;
            }

            NOTE: Add CSS code to the Backend > site template styles > ja seven - default > Tools > custom CSS:
            Give me the admin account for further checking, if you still face this issue.
            I apologize for my mistake. Thank you for your understanding.

              Write a Reply...
              You need to Login to view replies.