*

buggyboy

  • ***
  • 35 posts
  • ---
Widget HOME from Eta Theme in Epsilon Theme?
« on: August 05, 2026, 11:43:48 PM »
Hello. The new Eta theme includes a "Home" widget that displays text on the homepage. Can this widget also be used with the Epsilon theme? And if so, what changes would be required? Here is what I have found so far: index.php header, footer, home – doing this makes the "Home" section appear in the widget settings. But I’m not sure what to do next.

Hallo.

In dem neuen Eta Theme gibt es ein Widget Home, das einen text auf die Startseite erscheinen lässt.
Kann man dieses Widget auch auf das Epsilon Theme einsetzen? Und wenn ja, was müsste alles geändert werden?

Was ich schon gefunden habe: index.php
header,footer,home - Dann erscheint zumindest schon einmal bei den Einstellungen für das Widget der Home Bereich.
Aber weiter weiss ich nicht.

spiel-zeit-shop.de
brettspiele-flohmarkt.de
lesumer-spieleladen.de

*

MB Themes

Re: Widget HOME from Eta Theme in Epsilon Theme?
« Reply #1 on: August 06, 2026, 06:35:22 AM »
Yes, widgets implementation is not complicated. We currently use more "advanced" code to first filter out empty widgets and then show it:
Code: [Select]
  <?php
    $widgets 
Widget::newInstance()->findByLocation('home');

    
$widgets array_filter($widgets, function($w) {
      return isset(
$w['s_content']) && trim($w['s_content']) !== '';
    });
  
?>


  <?php if(!empty($widgets)) { ?>
    <section class="home-info">
      <?php foreach($widgets as $w) { ?>
        <h2><?php echo $w['s_description']; ?></h2>
        <div class="wrap"><?php echo $w['s_content']; ?></div>
      <?php ?>
    </section>
  <?php ?>


Then you must enable widget for backoffice in index.php of theme
Code: [Select]
Widgets: header,footer,home
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots