Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #607952

    Hi,

    I’ve used ALB to build a bunch of pages that have a full width easy slider, special heading, and text block. Now I’d like to add another page that looks the same but uses a couple lines of simple php to output a bit of text, so I’ve been experimenting with custom page templates. So far I’ve created a page template in my child theme (named template-stock-information.php) and have successfully selected it in the “Page Attributes > Template” dropdown. I’ve also created a new includes/loop-page-stock-information.php to change the output. So far so good.

    Unfortunately the full width slider wasn’t showing up full width like on the other pages built with ALB so I tried using template-builder.php as the starting point instead. Now I can’t figure out how to add my custom php/html to the output so that it shows up inside the correct div’s and wrappers.

    Any help is appreciated, cheers.

    #608712

    Hi _envato_user_!

    The easiet solution to achive is the following:

    1. Install a plugin that lets you execute php into posts / widgets
    2. Add php into a custom sidebar ( inside a text widget )
    3. Load the custom sidebar to the ALB.

    Please do let us know if that works out for you!
    Thanks a lot for your patience and understanding

    Best regards,
    Basilis

    #609877

    Hmmm, ok. I know there is a plugin “Insert PHP” but another person looking for help with this same subject was advised by your moderator Ismail NOT to use a plugin to do this… https://kriesi.at/support/topic/insert-php-in-pagesposts/#post-436571

    He suggests using custom template pages which is what I was trying to do. Now I’m confused!

    #609883

    Hi!

    Both ways work, I have done it with the way I suggest for a web site and it worked great for it.

    Cheers!
    Basilis

    #615628

    I have successfully used the plugin you suggested. Thanks!

    #616147

    Hi,

    Great, glad we could help :-)

    Best regards,
    Rikard

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.