Giter VIP home page Giter VIP logo

Comments (5)

danpros avatar danpros commented on June 16, 2024

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.

afoster1955 avatar afoster1955 commented on June 16, 2024

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.

danpros avatar danpros commented on June 16, 2024

Perhaps:

<?php  include config('views.root') . '/subscribe.php';?>

Edit: that if the file in your theme folder.

from htmly.

afoster1955 avatar afoster1955 commented on June 16, 2024

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.

danpros avatar danpros commented on June 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.