Tagged: , ,

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1326795

    Hello!

    I would greatly appreciate it if someone could help me clone a single Page from one domain to another. I own both and both sites are on the same server.
    Thank you!
    Joakim

    #1326827

    Hey Charlotte,

    Thank you for the inquiry.

    You can turn on the debug mode on both sites. This will display a field right at the bottom of the advance layout builder, which contains the element shortcodes. You can copy and paste the shortcodes from the first site to the other. For more info, please check the documentation.

    // https://kriesi.at/documentation/enfold/intro-to-layout-builder/#debug-mode

    Best regards,
    Ismael

    #1326976
    This reply has been marked as private.
    #1327148

    Hi,
    Please see the link above, you need to add this code to your functions.php

    //set builder mode to debug
    add_action('avia_builder_mode', "builder_set_debug");
    function builder_set_debug()
    {
      return "debug";
    }

    under this code if(isset($avia_config['use_child_theme_functions_only'])) return;
    to enable the debug function.

    Best regards,
    Mike

    #1327168

    Mike,
    You’re assuming I know more than I do. :-)

    Where do I find the functions.php?

    Thanks,
    Charlotte

    #1327194

    Hi,
    From the admin menu you can choose WordPress ▸ Appearance ▸ Theme Editor
    2021-10-31_001.jpg
    then you can choose the functions.php from the file list
    2021-10-31_002.jpg

    Best regards,
    Mike

    #1327290

    Hi,
    thanks but there is no if(isset($avia_config[‘use_child_theme_functions_only’])) return; in the functions.php file.

    Se all the code below:
    <?php

    /**
    * Add your own functions here. You can also copy some of the theme functions into this file.
    * WordPress will use those functions instead of the original functions then.
    *
    * Remove the comments before or around the sample functions and code to use theme.
    * @link http://kriesi.at/documentation/enfold/using-a-child-theme/
    */

    /**
    * Add filter to add or replace Enfold ALB shortcodes with new folder contents
    *
    * Note that the shortcodes must be in the same format as those in
    * enfold/config-templatebuilder/avia-shortcodes
    *
    * @link http://kriesi.at/documentation/enfold/add-new-or-replace-advanced-layout-builder-elements-from-child-theme/
    */

    add_filter(‘avia_load_shortcodes’, ‘avia_include_shortcode_template’, 15, 1);
    function avia_include_shortcode_template($paths)
    {
    $template_url = get_stylesheet_directory();
    array_unshift($paths, $template_url.’/shortcodes/’);

    return $paths;
    }

    /**
    * Turn on Custom CSS Class field for all Avia Layout Builder elements
    * @link http://kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/
    */
    //add_theme_support(‘avia_template_builder_custom_css’);

    /**
    * Remove the Import dummy data button from theme options
    * @link http://kriesi.at/documentation/enfold/remove-the-import-dummy-data-button/
    */
    //add_theme_support(‘avia_disable_dummy_import’);

    /**
    * Enable Avia Layout Builder Debug
    * @link http://kriesi.at/documentation/enfold/enable-advanced-layout-builder-debug/
    */
    add_action(‘avia_builder_mode’, “builder_set_debug”);
    function builder_set_debug() {
    return “debug”;
    }

    add_filter( ‘avf_google_heading_font’, ‘avia_add_heading_font’);
    function avia_add_heading_font($fonts)
    {
    $fonts[‘Prata’] = ‘Prata:400’;
    $fonts[‘Francois One’] = ‘Francois One:400’;
    $fonts[‘Open Sans’] = ‘Open Sans:300,400,600,700’;
    $fonts[‘Alegreya’] = ‘Alegreya:400,700’;
    return $fonts;
    }

    add_filter( ‘avf_google_content_font’, ‘avia_add_content_font’);
    function avia_add_content_font($fonts)
    {
    $fonts[‘Prata’] = ‘Prata:400’;
    $fonts[‘Francois One’] = ‘Francois One:400’;
    $fonts[‘Open Sans’] = ‘Open Sans:300,400,600,700’;
    $fonts[‘Alegreya’] = ‘Alegreya:400,700’;
    return $fonts;
    }

    add_filter(“kriesi_backlink”,”new_nolink”);
    function new_nolink(){
    $kriesi_at_backlink = “”;
    return $kriesi_at_backlink;
    }

    add_filter( ‘avf_modify_thumb_size’, ‘enfold_customization_modify_thumb_size’, 10, 1 );
    function enfold_customization_modify_thumb_size( $size ) {
    $size[‘masonry’] = array(‘width’=>1500, ‘height’=>250);
    $size[‘entry_without_sidebar’] = array(‘width’=>1210, ‘height’=>1210 , ‘crop’ => false);
    return $size;
    }

    function av_title_sc( ){
    $output = “<h1 class=’page-title’>”. get_the_title() .”</h1>”;
    return $output;
    }
    add_shortcode( ‘av_page_title’, ‘av_title_sc’ );

    function av_author_sc(){
    $current_user = wp_get_current_user();
    $output = “<h6 class=’ra-author’>AN ARTICLE BY ” . $current_user->user_firstname . “</h6>”;
    return $output;
    }
    add_shortcode(‘av_author’,’av_author_sc’);

    function av_excerpt( ){
    $excerpt = get_the_excerpt( $post );
    $output = “<span class=’related-excerpt’>”.$excerpt.”</span>”;
    return $output;
    }
    add_shortcode( ‘av_post_exc’, ‘av_excerpt’ );

    function avia_post_created(){
    $output = “<span class=’post-date’>”. get_the_date( $format, $post_id ) .”</span>”;
    return $output;
    }
    add_shortcode( ‘avia_created’, ‘avia_post_created’ );

    add_action( ‘after_setup_theme’, ‘ava_enfold_builder_layout_mod’ );
    function ava_enfold_builder_layout_mod(){
    add_filter(‘avf_builder_elements’, ‘avf_enfold_builder_layout_settings_mod’);
    }

    function avf_enfold_builder_layout_settings_mod($elements)
    {
    $counter = 0;
    foreach($elements as $element)
    {

    // Layout > Header visibility and transparency
    if($element[‘id’] == ‘header_transparency’) {
    /**
    *
    * Available Options
    * No transparency =
    * Transparent Header = ‘header_transparent’
    * Transparent Header with border = ‘header_transparent header_with_border’
    * Transparent & Glassy Header = ‘header_transparent header_glassy ‘
    * Header is invisible and appears once the users scrolls down = ‘header_transparent header_scrolldown ‘
    * Hide Header on this page = ‘header_transparent header_hidden ‘
    * MOD: Set the Layout > Header visibility and transparency settings to “Hide both”Header is invisible and appears once the users scrolls down”
    *
    **/
    $elements[$counter][‘std’] = ‘header_transparent’;
    }

    $counter++;
    }
    return $elements;
    }

    function av_single_fo(){
    ?>
    <script>
    var header = jQuery(“.single-post #main .avia-section .content”);
    jQuery(window).scroll(function() {
    var scroll = jQuery(window).scrollTop();

    if (scroll >= 250) {
    header.addClass(“single-header”);
    } else {
    header.removeClass(“single-header”);
    }
    });
    </script>
    <?php
    }
    add_action(‘wp_footer’, ‘av_single_fo’);

    add_filter( ‘style_loader_src’, ‘t5_remove_version’ );
    add_filter( ‘script_loader_src’, ‘t5_remove_version’ );

    function t5_remove_version( $url )
    {
    return remove_query_arg( ‘ver’, $url );
    }

    function raboff_custom_checkbox(){
    ?>
    <script>

    jQuery(window).load(function(){
    jQuery(‘h2.avia-caption-title’).after(‘<p class=”close-caption”> </p>’);
    jQuery( “.close-caption”).click(function() {
    var closeTheCap = jQuery(this).closest(“.slideshow_align_caption”);
    closeTheCap.hide(“slow”);
    });
    });

    jQuery(window).scroll(function(){
    var numberNotChecked = jQuery(‘fieldset.alacarte-form input:checkbox:not(“:checked”)’).length;
    console.log(numberNotChecked, “Hello, world!”);

    if (numberNotChecked >= 16) {
    jQuery(“.one-day”).addClass(“p-highlight”);
    }
    else {
    jQuery(“.one-day”).removeClass(“p-highlight”);
    }

    if (numberNotChecked <= 15 && numberNotChecked >= 8 ) {
    jQuery(“.two-day”).addClass(“p-highlight”);
    }
    else {
    jQuery(“.two-day”).removeClass(“p-highlight”);
    }

    if (numberNotChecked <= 7 ) {
    jQuery(“.three-day”).addClass(“p-highlight”);
    }
    else {
    jQuery(“.three-day”).removeClass(“p-highlight”);
    }

    });
    </script>
    <?php
    }
    add_action(‘wp_footer’, ‘raboff_custom_checkbox’);

    function avia_add_custom_social_icon($icons) {
    $icons[‘Turning Torso’] = ‘turning_torso’;
    return $icons;
    }
    add_filter(‘avf_social_icons_options’,’avia_add_custom_social_icon’, 10, 1);

    #1327370

    Hi,

    Thank you for the update.

    there is no if(isset($avia_config[‘use_child_theme_functions_only’])) return; in the functions.php file.

    Looks like you are using a child theme. Just paste the debug mode snippet anywhere in the functions.php file. The debug mode field should display below the advance layout builder after adding the code. Please make sure to purge the cache or refresh the browser before editing the page.

    Best regards,
    Ismael

    #1327398

    Great, thanks :)

    #1327419

    Hi,
    Glad Ismael could help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Clone single Page from one site to another’ is closed to new replies.