The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Widgets in a separate tab in the mobile version

Go down

 Widgets in a separate tab in the mobile version Empty Widgets in a separate tab in the mobile version

Post by كونان2000 March 7th 2022, 9:29 am

Widgets in a separate tab in the mobile version

 Widgets in a separate tab in the mobile version Sg1fcpil7pva


welcome everybody,
This trick is similar to @MattiaDes suggestion  Widgets in a separate tab in the mobile version 1830443236
Widgets in a separate tab in the mobile version
-----------------------


1: go to the mobile version templates
2: index_box
Enter the following code at the top of the template
Code:
<style>
widgeto {
    display: block !important;
    margin-top: 10px;
    padding-right: 10px;
}
 .module {
display: none;
}
    
    </style>

3: overall_footer
Find the next part in overall_footer template
Code:
<!-- BEGIN switch_connected -->

replace it with
Code:
  <!-- BEGIN switch_connected -->
 <!DOCTYPE html>
<html>
<head>

<script>
$(document).ready(function(){
  $("widgeto").click(function(){
    $(".forum, .box, .module,  .box-widget-bottom").addClass("module1");
    $(".module").addClass("module2");
  });
});
</script>
<style>
.module1 {
display: none;
}

.module2 {
display: block !important;
}
</style>
</head>
<body>
<widgeto><i class="material-icons"></i><br />widgets</widgeto>
</body>
</html>
<style>
widgeto {
display: none;
}
    </style>
---------------------------------------

Note...
The widgets button appears on the home page only 


Hope you like this trick  Widgets in a separate tab in the mobile version Icon_biggrin
كونان2000
كونان2000
Forumember

Other / Decline to state Posts : 36
Reputation : 21
Language : arabic

View user profile https://i.servimg.com/u/f30/20/35/61/89/din12.jpg

SarkZKalie, TonnyKamper and jucarese like this post

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum