Greenlet Team
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Greenlet] Create Another SidebarHi @bradhip
You can manage the layout of page content as explained in our Page Layout documentation. Page layout consists of the main content of the page and the sidebars. The number of sidebars can be registered in the same customizer section as well. Once you register the number of sidebars you want Publish the changes and reload the page. New sidebars will be visible under
Customizer > widgets
as Sidebar 1, Sidebar 2…We have also answered your question related to sticky sidebar under the previous question you asked.
Hope that helps! Please let us know if you face any issues.
Forum: Themes and Templates
In reply to: [Greenlet] Can the Sidebar stay on screen during scroll?Hi @bradhip
This feature is not available in the Greenlet theme. Thanks for this, we will add it to our roadmap.Currently, you can implement this functionality by adding code like this to your child theme’s function.php:
function sticky_script() { ?> <script type="text/javascript"> const topOffset = 100 const bottomOffset = 200 const sidebars = document.querySelectorAll( '.sidebar' ) const bodyHeight = document.body.offsetHeight let stuck = false function stick() { sidebars.forEach( ( sidebar ) => { if ( stuck && ( bodyHeight - sidebar.offsetHeight - bottomOffset ) < window.scrollY ) return if ( window.scrollY > topOffset ) { stuck = true sidebar.style.position = 'relative' sidebar.style.height = 'fit-content' sidebar.style.top = <code>${ window.scrollY - topOffset }px</code> } } ) } document.addEventListener( 'scroll', stick ) </script> <?php } add_action( 'wp_footer', 'sticky_script' );
Please change
topOffset
andbottomOffset
according to your needs. Please let us know if you face any issues.Hope that helps!
Forum: Themes and Templates
In reply to: [Greenlet] How to make fullwidth page?Hi @danishfareed
get_header();
rendersheader.php
. So, if you look atheader.php
in greenlet root directory the code includesgreenlet_markup( 'site-content', greenlet_attr( 'site-content' ) );
which is responsible for the site-content section.You can override
header.php
in your child theme and replace this section (or any other part of header like container). You can also add condition for the same, something like:if( $condition ) { greenlet_markup( 'site-content', greenlet_attr( 'site-content' ) ); }
Note: if you remove a section created under
header.php
, also don’t forget to remove the closing tag underfooter.php
. Eg: If you remove one opening tag from header, changegreenlet_markup_close( 3 );
togreenlet_markup_close( 2 );
in footer.Hope that helps.
A review like this will always keep us motivated to make Greenlet even better. Thank you so much for your review and rating! ??
Forum: Themes and Templates
In reply to: [Greenlet] How to create custom page(Single, Archive) template?Hi @danishfareed
Happy to see that you achieved what you wanted.Just to add, we wrapped the whole page rendering under
greenlet()
function for consistent rows and columns output. You can take a look at thegreenlet()
function inlibrary/frontend/main.php
to override that function the default way.In your case, the same functionality could also be achieved via something like this:
get_header(); do_action( 'greenlet_before_main_container' ); echo 'Custom main container'; do_action( 'greenlet_after_main_container' ); get_footer();
This could help maintain better future compatibility.
Thanks
Forum: Reviews
In reply to: [Greenlet] It has killer combination of must have features i am looking forHi @prakash_gp
We are really glad to hear about your experience with Greenlet. Thank you so much for your rating and detailed review! Really appreciate it.
Forum: Reviews
In reply to: [Greenlet] Excellent Theme For Any Kind Of Website and LightweightHello @freewebmentor
Thank you so much for the review and ratings. We really appreciate it! ??
Hi, Copyright section is now converted to a footer item. You can easily remove this section under Customize > Layout > Footer Layout > Footer {n} Items and add different items like widgets, menus and PHP templates. remove_action example given above is no longer needed. However, changing the copyright content via filter still works.
Thanks,
Greenlet TeamForum: Themes and Templates
In reply to: [Greenlet] View full content of posts on index page?Trying to mark this as resolved as the latest versions come with the option requested. Please feel free to re-open a support ticket in case you are facing any issues.
Hi, we do understand the need for a simple option to remove/change the copyright section. We are considering all the possibilities and will come up with the best possible solution in the upcoming version.
Currently, please use the following to remove the copyright section completely:
function remove_copyright_action() { remove_action( "greenlet_after_footer_1_columns", 'greenlet_footer_text' ); } add_action( 'greenlet_after_footer_1_columns', 'remove_copyright_action', 9 );
Note: footer_1 is the first footer row. The above action runs after rendering all the columns in footer_1.
Alternatively, you can use the following to change the content of the copyright section:
function mysite_copyright() { echo 'Alternative copyright section'; } add_filter( 'greenlet_copyright', 'mysite_copyright' );
Hope that helps. Please let us know if you are facing difficulties to achieve the same.
Thanks,
Greenlet TeamForum: Themes and Templates
In reply to: [Greenlet] View full content of posts on index page?Hi, Apologies for the delay. We genuinely missed this section of www.ads-software.com.
The current version does not have a UI option to achieve this. However, we received a similar request a few days ago and added this functionality to our development branch. The next version should have this feature.With the current version, same functionality can be achieved by following the steps mentioned in this ticket: https://github.com/codefoxes/greenlet/issues/43
Hope that helps!
Hi, Apologies for the delay. We genuinely missed this section of www.ads-software.com.
This feature is not available via backend settings at the moment but definitely will add it to our roadmap.
Currently, you can achieve this by adding the following code to your child theme or custom plugin:add_action('greenlet_after_header', function () { if ( is_home() ) { ?> <div class="banner"> <img src="myimage.jpg" alt="My Image"> </div> <?php } } );
Please let us know if that helps!
Forum: Reviews
In reply to: [Greenlet] Really great ThemeHello @sebastian19256
Thank you so much for the review and ratings. We really appreciate it! ??