• 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.
    • We recommend purchasing a Chevereto license to participate in this community.
    • Purchase a Community Subscription to get even 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

Disable content-width class for all except admin

ss132203

Chevereto Member
What I mean is, I've removed the entire content-width class from the image view page. But the one part I don't like is that say when I need to get image embed codes I won't be able to get 'em. So if admin only can access content-width it will save trouble for me to search the image codes from search button. I'd really like to see this feature in upcoming release. I know 99% people won't like what I really need.

PS: Not sure if its the correct section to post the thread.
 
Extensive or very specific editing won't be added to this. The reason behind this is that it is impossible to fill every custom need out there.

That being said, use built-in conditionals like is_admin() to display or hide stuff.
 
Extensive or very specific editing won't be added to this. The reason behind this is that it is impossible to fill every custom need out there.

That being said, use built-in conditionals like is_admin() to display or hide stuff.

It was somewhat a suggestion and how to tbh.

What I've done is

<div class="content-width">
<div class="header">
<div class="header-content-right">
<div class="number-figures float-left"><?php echo get_image()["views"]; ?> <span><?php echo get_image()["views_label"]; ?></span></div>
</div>
</div>
</div>

So If as per you suggested what do i do exactly ?
Do you mean

_admin(content-width class goes here)

Sorry, I'm a noob in coding.
 
Code:
<?php if(is_admin()) { ?>HTML ONLY FOR ADMIN<?php } ?>
 
Back
Top