-
AuthorPosts
-
October 28, 2021 at 11:13 am #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!
JoakimOctober 28, 2021 at 1:07 pm #1326827Hey 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,
IsmaelOctober 29, 2021 at 11:35 am #1326976This reply has been marked as private.October 31, 2021 at 12:36 am #1327148Hi,
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,
MikeOctober 31, 2021 at 10:35 am #1327168Mike,
You’re assuming I know more than I do. :-)Where do I find the functions.php?
Thanks,
CharlotteOctober 31, 2021 at 1:30 pm #1327194November 1, 2021 at 1:00 pm #1327290Hi,
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);November 2, 2021 at 3:02 am #1327370Hi,
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,
IsmaelNovember 2, 2021 at 9:40 am #1327398Great, thanks :)
November 2, 2021 at 11:45 am #1327419Hi,
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 -
AuthorPosts
- The topic ‘Clone single Page from one site to another’ is closed to new replies.