• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.
  • 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

Explorer page for indrx

sukruplus

Chevereto Member
Hello there,

I would like to use explorer page as index.

I have found another topic about that but couldnt solve my problem.

the another question is when i click on the logo it goes to /username also want it to go explrer page
 
Edit this file.
\app\themes\Peafowl\header.php

Find this piece of code:

<div id="logo" class="top-bar-logo<?php if(is_private_gate()) { ?> text-align-left<?php } ?>"><a href="<?php echo CHV\Login::isLoggedUser() ? CHV\Login::getUser()['url'] : G\get_base_url(); ?>"><img class="replace-svg" src="<?php echo CHV\get_system_image_url(CHV\getSetting(CHV\getSetting('logo_vector_enable') ? 'logo_vector' : 'logo_image')); ?>" alt="<?php echo CHV\getSetting('website_name'); ?>"></a></div>

To make the logo go to the homepage, and not your "profile" just remove this part.

<div id="logo" class="top-bar-logo<?php if(is_private_gate()) { ?> text-align-left<?php } ?>"><a href="<?php echo CHV\Login::isLoggedUser() ? CHV\Login::getUser()['url'] : G\get_base_url(); ?>"><img class="replace-svg" src="<?php echo CHV\get_system_image_url(CHV\getSetting(CHV\getSetting('logo_vector_enable') ? 'logo_vector' : 'logo_image')); ?>" alt="<?php echo CHV\getSetting('website_name'); ?>"></a></div>

CHV\Login::isLoggedUser() ? CHV\Login::getUser()['url'] :

Your code should now look like this:

<div id="logo" class="top-bar-logo<?php if(is_private_gate()) { ?> text-align-left<?php } ?>"><a href="<?php echo G\get_base_url(); ?>"><img class="replace-svg" src="<?php echo CHV\get_system_image_url(CHV\getSetting(CHV\getSetting('logo_vector_enable') ? 'logo_vector' : 'logo_image')); ?>" alt="<?php echo CHV\getSetting('website_name'); ?>"></a></div>

If you make your homepage the 'explorer page' then your logo will be directing to the explorer page :)

I haven't tried it myself, but you could try changing this:

G\get_base_url()

to this:

G\get_base_url('explore')

So then your code looks like this.

<div id="logo" class="top-bar-logo<?php if(is_private_gate()) { ?> text-align-left<?php } ?>"><a href="<?php echo G\get_base_url('explore'); ?>"><img class="replace-svg" src="<?php echo CHV\get_system_image_url(CHV\getSetting(CHV\getSetting('logo_vector_enable') ? 'logo_vector' : 'logo_image')); ?>" alt="<?php echo CHV\getSetting('website_name'); ?>"></a></div>

Hope it works for you :)
 
Thank you for your respond.

Do you know how to make my index page , explorer page. instead of index page i want explorer to become index
 
Back
Top