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

    Hi, i make a website where many similar page (countries for example) and all of them have the same layout and structure.

    In the future i plan to add some blocks or remove (ex. contact form or reviews) – how can i do it modification for all similar pages. I thinked that can use templates for avia builder but it is useful only for new pages…

    • This topic was modified 7 years, 5 months ago by KidLoop.
    #802222

    Hey KidLoop,

    Maybe you could add widget areas to those sections on your pages and simply adjust widgets in Appearance > Widgets and changes would be applied on all pages. Other than other, i am afraid it would not be easily possible without using templates

    Best regards,
    Yigit

    #802773

    I’m glad to use templates, but didn’t find how to use it. There are layout templates – i can save it and in further use when will create a new page. But i need next modification of the layout on the few similar pages.

    #802958

    Hi,

    Thanks for the feedback. When you say that you didn’t find out how to use templates, what exactly do you mean? You should be able to edit the templates by editing the corresponding file located in the theme. Did you try that out?

    Best regards,
    Rikard

    #803319

    Hi!

    I create a new template php on the base of page.php just gave a new name. As i understand, this part of code responsable for what i see on the page from avia layout:

    <div class='container'>
    
    				<main class='template-page content  <?php avia_layout_class( 'content' ); ?> units' <?php avia_markup_helper(array('context' => 'content','post_type'=>'page'));?>>
    
                        <?php
                        /* Run the loop to output the posts.
                        * If you want to overload this in a child theme then include a file
                        * called loop-page.php and that will be used instead.
                        */
    
                        $avia_config['size'] = avia_layout_class( 'main' , false) == 'fullsize' ? 'entry_without_sidebar' : 'entry_with_sidebar';
                        get_template_part( 'includes/loop', 'page' );
                        ?>
    
    				<!--end content-->

    Also i have a page with avia contend (title, text, cf etc.) and want to not only create may similar pages but have poissibility to modificate – mean change blocks places, add some blocks and on all smilar pages in the same time. So i need to use template for a page?.

    1) Can i create template on the base of existed page and use it? How to add avia tags and blocks to the template?
    2)

    #804788

    Hi,

    add some blocks and on all smilar pages in the same time

    1.) I’m sorry but this is not possible with the advance layout builder because each page generates its own set of shortcodes. You have to modify each page individually.

    2.) This is possible but you have to use the default editor instead of the advance layout builder.

    // https://developer.wordpress.org/themes/template-files-section/page-template-files/
    // http://www.wpbeginner.com/wp-themes/how-to-create-a-custom-page-in-wordpress/

    Best regards,
    Ismael

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