• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space
  • Chevereto Support CLST

    Support response

    Support checklist

    • Got a Something went wrong message? Read this guide and provide the actual error. Do not skip this.
    • Confirm that the server meets the System Requirements
    • Check for any available Hotfix - your issue could be already reported/fixed
    • Read documentation - It will be required to Debug and understand Errors for a faster support response

Update Header

Barry

💖 Chevereto Fan
Perhaps I am missing something, but how to I add a new "category" to the default list in Chevereto

ScreenShot2017-07-22at7.50.19PM09e88.png


How do I add something else, such as "blog"
 
You say "Category" ?? but if you just need an extra menu item after random then.....

Create a copy of the theme, and then edit header.php and put it in:

app ==> themes ==> yourtheme ==> overrides

Find:

Code:
            <?php if(CHV\getSetting('website_random')) { ?>
            <li id="top-bar-random"  data-nav="random" class="top-btn-el phone-hide">
                <a href="<?php echo G\get_base_url("?random"); ?>"><span class="top-btn-text"><span class="icon icon-shuffle"></span><span class="btn-text phone-hide phablet-hide"><?php _se('Random'); ?></span></span></a>
            </li>
            <?php } ?>

Add after:

Code:
            <?php { ?>
            <li class="top-btn-el">
                <a href="http://www.myblog.com"><span class="top-btn-text"><span class="icon icon-home"></span><span class="btn-text phone-hide phablet-hide"><?php _se('Blog'); ?></span></span></a>
            </li>
            <?php } ?>


Think that should work.

You might need to change the icon to something you like. In that code it's "icon-home", not sure if there is a icon-blog you'd need to check. You'll also need to amend the url for your blog site.

You also might need to make your logo smaller as it could "crash" into the extra button 😉
 
@Oakley Thanks - I will test this later today. I didnt really mean category, I meant an extra menu item just like you described.

I appreciate you sharing the code snippet.
 
Hello,

I am trying to add a new menu item and was a little confused about what you wrote above. Sorry coding rookie here.

So I create a copy of header.php and paste in overrides? Then insert the code you wrote above with the link to my blog?

Any help would be appreciated.

Thanks.
 
@Oakley could you please be a little more specific as to how to add a link on the top button to a blog I would like to include.

Thanks!
 
You say "Category" ?? but if you just need an extra menu item after random then.....

Create a copy of the theme, and then edit header.php and put it in:

app ==> themes ==> yourtheme ==> overrides

Find:

Code:
            <?php if(CHV\getSetting('website_random')) { ?>
            <li id="top-bar-random"  data-nav="random" class="top-btn-el phone-hide">
                <a href="<?php echo G\get_base_url("?random"); ?>"><span class="top-btn-text"><span class="icon icon-shuffle"></span><span class="btn-text phone-hide phablet-hide"><?php _se('Random'); ?></span></span></a>
            </li>
            <?php } ?>

Add after:

Code:
            <?php { ?>
            <li class="top-btn-el">
                <a href="http://www.myblog.com"><span class="top-btn-text"><span class="icon icon-home"></span><span class="btn-text phone-hide phablet-hide"><?php _se('Blog'); ?></span></span></a>
            </li>
            <?php } ?>


Think that should work.

You might need to change the icon to something you like. In that code it's "icon-home", not sure if there is a icon-blog you'd need to check. You'll also need to amend the url for your blog site.

You also might need to make your logo smaller as it could "crash" into the extra button 😉
thank you so much
 
Back
Top