How can hide Login to Edit this Site from Homepage

Permalink
Hello to all support members,
I am a new user of concrete5; and I am trying to build a site but I can see a Link in the Homepage footer: "Login to Edit this Site", which may redirected to the Admin Login page.
Now I want to hide this option from my homepage, since I know the login URL that's why there is no need to show this in my homepage footer.
Please tell me the way through which I can do this.
Thanks

 
Jupiter replied on at Permalink Reply
Jupiter
Hi
Peteh2,

At first from dashboard you can see what theme is currently active....go to the root/concrete/themes/your_active_theme/elements/footer.php...

and delete the section which you don't want to show ....

For better use please override the currently active theme in your root/themes folder and change the name and handle from dashboard

i hope this will help you

Regards
jupiter
Peteh2 replied on at Permalink Reply
Hello Jupiter,
I can already edit the copyright portion and there is no problem but which portion of code I can delete for this I am not sure; since footer sign in enclosed under <p> to </P> and footer inner started before this; please take a look on the code:
<?php   defined('C5_EXECUTE') or die("Access Denied."); ?>
<div class="clear"></div>
   <div id="footer">
      <div id="footer-inner">
         <p class="footer-sign-in">
         <?php  
         $u = new User();
         if ($u->isRegistered()) { ?>
            <?php   
            if (Config::get("ENABLE_USER_PROFILES")) {
               $userName = '<a href="' . $this->url('/profile') . '">' . $u->getUserName() . '</a>';
            } else {
               $userName = $u->getUserName();
            }
            ?>


Jupiter, can I delete this code from: <div id="footer-inner"> to <div class="clear"></div>
or only the portion started from: <p class="footer-sign-in"> to </p>.
Thanks
Jupiter replied on at Permalink Best Answer Reply
Jupiter
Hi
Peteh2,

only the portion <p class="footer-sign-in"></p>..comment this section

i hope this will help you

Regards
jupiter
Peteh2 replied on at Permalink Reply
Hello Jupiter,
It works fine!
Thanks for Support
planetxeo replied on at Permalink Reply 1 Attachment
Hello I was wondering what lines I need to remove from this php file to remove the admin login link in the white part of the header on Jupiter theme?

Thanks in advance for the help. Can you copy and paste the part I need to delete in your reply so I won't break it. Thanks, Anthony

I found this file in: Root/site/theme/child/header.php

<!DOCTYPE html>

<html <?php echo language_attributes();?> >

<head>

<?php wp_head(); ?>



</head>



<body <?php body_class(mk_get_body_class(global_get_post_id())); ?> <?php echo get_schema_markup('body'); ?> data-adminbar="<?php echo is_admin_bar_showing() ?>">



<?php

// Hook when you need to add content right after body opening tag. to be used in child themes or customisations.

do_action('theme_after_body_tag_start');

?>



<!-- Target for scroll anchors to achieve native browser bahaviour + possible enhancements like smooth scrolling -->

<div id="top-of-page"></div>



<div id="mk-boxed-layout">



<div id="mk-theme-container" <?php echo is_header_transparent('class="trans-header"'); ?>>



<?php mk_get_header_view('styles', 'header-'.get_header_style());
MrKDilkington replied on at Permalink Reply
MrKDilkington
@planetxeo

I think you may have the wrong CMS forum. You are working with a WordPress theme, not a concrete5 theme.
planetxeo replied on at Permalink Reply
Is this for Jupiter WP theme? I may be in the wrong place. The support answer above seemed like the solution, I had assumed I was on the right forum.

Do you know enough about php to kind tell me where the tags open and close, by chance? I know basic HTML and I assume it is either on the ; or the < >

I think from this code line...

<body <?php body_class(mk_get_body_class(global_get_post_id())); ?> <?php echo get_schema_markup('body'); ?> data-adminbar="<?php echo is_admin_bar_showing() ?>">


I will only need to remove Part to remove:


?> data-adminbar="<?php echo is_admin_bar_showing()
MrKDilkington replied on at Permalink Reply
MrKDilkington
@planetxeo

A username in this discussion is "Jupiter" and may be the cause for your confusion.

I am afraid I have no knowledge of WordPress code and wouldn't be able to provide you with a good answer.

I believe you will find the best answers for your questions here:
https://en.forums.wordpress.com/forum/themes...
k3ndx replied on at Permalink Reply
hi jupiter this is my sitehttp://www.southbaycycles.com/ build with cms using your themes but i wanna remove the login panel, im looking for <a id="mk-header-login-button" class="mk-login-link mk-toggle-trigger" href="#"> where this plase plese help me