Comments (5)
Yes of course, modify the layout.html.php
as needed. But before you do that, copy the theme to different folder first and rename to eg. my-theme
, put back in themes
folder.
from htmly.
It appears that using an include will not work, either that or I am not coding the include correctly. Here is what I have done. I have placed this block of code right above the About block.
<aside class="aside section"> <div class="section-inner"> <h2 class="heading"><?php echo i18n("subscribe");?></h2> <div class="content"> <?php include "subscribe.php";?> </div><!--//content--> </div><!--//section-inner--> </aside><!--//section-->
from htmly.
Perhaps:
<?php include config('views.root') . '/subscribe.php';?>
Edit: that if the file in your theme folder.
from htmly.
I placed the subscribe.php file in the theme folder and added the following code in the layout.html.php file of the blog theme but unfortunately it does not appear in the side bar anywhere.
<aside class="aside section"> <div class="section-inner"> <h2 class="heading"><?php echo i18n("Subscribe");?></h2> <div class="content"> <?php include config('views.root') . '/subscribe.php';?> </div><!--//content--> </div><!--//section-inner--> </aside><!--//section-->
from htmly.
In my test using echo, <?php echo 'Work';?>
its work so I believe the problems is from the subscribe.php. I will close this one. Thanks
from htmly.
Related Issues (20)
- SEO standard invalid of META tags - Inside BODY tag HOT 1
- Support isso comment system HOT 1
- Possible to add custom HTML and/or JavaScript HOT 2
- Commentics HOT 10
- Enhancement Req : Every SAVE button shoud have ClearCache together HOT 2
- new Install white page no theme HOT 8
- HTMLy is not installed! HOT 3
- How to add custom social buttons? (Independent Publisher theme) HOT 6
- Adding sub-categories HOT 3
- What is the safe way to disable all navigation menu items? (Grid Zone Theme) HOT 3
- How to customize the sidebar (Grid Zone Theme) HOT 1
- How to Submit Enquiry Form together HOT 2
- Article summary at home page getting error HOT 2
- [FEATURE REQUEST] Plz add version number on footer HOT 6
- [FEATURE REQUEST] Admin to User Problem HOT 1
- [QUESTION] Theme Issue HOT 1
- [QUESTION] Sitemap.xml - is listing only my current year OR max 39 rows HOT 3
- Errror On Installation HOT 2
- Ukrainian language HOT 1
- Subscribe Module HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from htmly.