Hi Guys,
I have been looking into this. As the description says, the off canvas menu shows the title Off Canvas, sometimes T4 Off Canvas. See below.

The issue is that when the site does not have a logo, it shows the default off canvas title which is "T4 off canvas" or "off canvas'. It depends on the page.

This file /ja-stark/plugins/system/t4/themes/base/html/layouts/t4/layout/offcanvas.php

<?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; ?>

At line 70
<?php echo $offcanvas_title; ?>
should probably be something like
<?php echo strip_tags($site_name); ?>

With this change, it shows the website name. Hopefully you can update that in the next release.
Hopefully it helps someone else.

Result below:

JM

    2 years later

    jmrapin2 sorry to bring this discussion back up, but I see that after over 2 years the problem still exist in my website..
    Do you think there is a way to add this information in custom css o custom scss? Or do I have to edit directly that file you mentionned (in that case the file gets overwritten during template update).

    How is everything now?

    Great catch! It makes sense to display the site name instead of the default "T4 Off Canvas" when there's no logo. Changing the code to <?php echo strip_tags($site_name); ?> seems like a solid solution to ensure the off-canvas menu shows the correct title. Hopefully, this gets updated in the next release for a smoother experience! Buying a thesis online can be a bit tricky, but after reading reviews, I decided to use Academized where you can buy thesis online at https://academized.com/buy-thesis-online and I bought my thesis, and the result was amazing! The writer took the time to research and structure it perfectly, addressing all the key points. The quality was excellent, and the price was reasonable. I would definitely recommend Academized to anyone looking to buy a thesis online.!<

      ryderperry I modified directly the file contained here: /plugins/system/t4/themes/base/html/layouts/t4/layout/offcanvas.php doing what was suggested in the post above, in my file the problem was on line 75:
      <?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; ?>

      Modified to:
      <?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 strip_tags($site_name); ?>
      <?php endif; ?>

      So the title now is showed correctly, but when I update the template il will probably come back to "Off Canvas", I still need to know if I can do an override (like for custom.css) that remains when I update the template.

      Perhaps @saguaros could give me a hint on how to do it

      Hi

      You can override it by copying this file:
      /plugins/system/t4/themes/base/html/layouts/t4/layout/offcanvas.php

      and paste into this directory in template:
      /templates/ja_stark/html/layouts/t4/layout/

      Create this folder if it doesn't exist now.

      This override file will not be affected when you update new version of template or T4 framework plugin.

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