Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1215828
    Pavle L
    Participant

    Hi Support,

    In theme are are few page templates. I am mostly using “no container, header, footer”.
    How can I create new page template based on “no container, header, footer” where I will have custom php script?

    #1215834
    Lely
    Moderator

    Hi Pavle,

    You may copy template-blank-4.php from \wp-content\themes\x\framework\views\{your-stack} to this folder: \wp-content\themes\x-child\framework\views\{your-stack}. Rename and edit it as you wish.

    Hope this helps.

    #1219019
    Pavle L
    Participant

    Thanks on feedback.

    Regarding to response, can add add 1 additional page template, based on blank-4? So i can have that 1 additional template display in list with all other templates?

    #1219020
    Christopher
    Moderator

    Hi there,

    Please check following links :

    https://codex.wordpress.org/Pages
    https://developer.wordpress.org/themes/template-files-section/page-template-files/page-templates/#Custom_Page_Template

    Hope it helps.

    #1219045
    Pavle L
    Participant

    Solution is in 2 files.

    Page template inside root of X folder and page template in view{stack} folder.

    Can you provide me advice for shortcode. I need to display custom post type/field via shortcode.

    Is there any documentation how to create shortcode for visual composer?

    #1219120
    Lely
    Moderator

    Hi There,

    Please check this for visual composer:https://vc.wpbakery.com/video-academy/add-shortcodes-visual-composer-wordpress/

    To display shortcodes on a template, something like this should work:
    do_shortcode( '[shortcode here]');

    Hope this helps.

    #1219373
    Pavle L
    Participant

    Thank yoy Lely! cheers!

    #1219404
    Joao
    Moderator

    Glad to hear it,

    Joao

  • <script> jQuery(function($){ $("#no-reply-1215828 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>