Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- child theme functions.php:
- ---------------------------------------------------------------------
- <?php
- function parent_theme_enqueue_styles() {
- wp_enqueue_style( 'physio-qt-style', get_template_directory_uri() . '/style.css', array( 'font-awesome', 'bootstrap' ) );
- wp_enqueue_style( 'physio-child-style', get_stylesheet_directory_uri() . '/style.css', 'physio-qt-style' );
- }
- add_action( 'wp_enqueue_scripts', 'parent_theme_enqueue_styles' );
- if ( defined( 'SITEORIGIN_PANELS_VERSION' ) ) {
- require get_stylesheet_directory() . '/inc/siteorigin-page-builder.php';
- }
- ---------------------------------------------------------------------
- contents of /inc/siteorigin-page-builder.php:
- ---------------------------------------------------------------------
- <?php
- /**
- * Register a custom layouts folder location.
- */
- function siteorigin_corp_child_layouts_folder( $layout_folders ) {
- $layout_folders[] = get_stylesheet_directory() . '/inc/layouts';
- return $layout_folders;
- }
- add_filter( 'siteorigin_panels_local_layouts_directories', 'siteorigin_corp_child_layouts_folder' );
- add_filter( 'siteorigin_panels_prebuilt_layouts', function( $layouts ) {
- // Sort layouts alphabetically.
- usort( $layouts, function( $a, $b ) {
- return strcmp( $a['id'], $b['id'] );
- } );
- return $layouts;
- } );
- ---------------------------------------------------------------------
- contents of /inc/layouts/:
- ---------------------------------------------------------------------
- file chronic-pain-cta.json
- file chronic-pain-cta.jpg
- ---------------------------------------------------------------------
- contents of /inc/layouts/chronic-pain-cta.json
- ---------------------------------------------------------------------
- "{\"widgets\":[{\"panels_data\":{\"widgets\":[{\"title\":\"\",\"content\":\"<h4 style=\\\"display:inline\\\">\\n\\tStart finding real relief from chronic pain today - give Tidal Chiropractic a try.\\n<\/h4>\",\"panels_info\":{\"class\":\"WP_Widget_Custom_HTML\",\"raw\":false,\"grid\":0,\"cell\":0,\"id\":0,\"widget_id\":\"706af4d2-8ce2-4363-b777-6e17d800f1f0\",\"style\":{\"background_image_attachment\":false,\"background_display\":\"tile\",\"background_image_size\":\"full\",\"background_image_opacity\":\"100\",\"border_thickness\":\"1px\",\"big_widget_title\":\"\",\"small_widget_title\":\"\",\"white_widget_title\":\"\",\"featured_box\":\"\",\"white_featured_box\":\"\"}}},{\"title\":\"\",\"content\":\"<a href=\\\"https:\/\/www.tidalchiro.com\/book\\\" class=\\\"btn btn-primary\\\" target=\\\"_self\\\">Schedule Your Appointment<\/a>\",\"panels_info\":{\"class\":\"WP_Widget_Custom_HTML\",\"raw\":false,\"grid\":0,\"cell\":1,\"id\":1,\"widget_id\":\"07c1f6ff-6c8b-4602-8e79-223faa13c000\",\"style\":{\"background_image_attachment\":false,\"background_display\":\"tile\",\"background_image_size\":\"full\",\"background_image_opacity\":\"100\",\"border_thickness\":\"1px\",\"big_widget_title\":\"\",\"small_widget_title\":\"\",\"white_widget_title\":\"\",\"featured_box\":\"\",\"white_featured_box\":\"\"}}}],\"grids\":[{\"cells\":2,\"style\":{\"background_image_attachment\":false,\"background_display\":\"tile\",\"background_image_size\":\"full\",\"background_image_opacity\":\"100\",\"border_thickness\":\"1px\",\"full_height\":\"\",\"cell_alignment\":\"flex-start\"}}],\"grid_cells\":[{\"grid\":0,\"index\":0,\"weight\":0.5,\"style\":[]},{\"grid\":0,\"index\":1,\"weight\":0.5,\"style\":{\"cell_css\":\"text-align: right;\",\"background_image_attachment\":false,\"background_display\":\"tile\",\"background_image_size\":\"full\",\"background_image_opacity\":\"100\",\"border_thickness\":\"1px\",\"vertical_alignment\":\"auto\"}}]},\"builder_id\":\"675eec348ce21\",\"panels_info\":{\"class\":\"SiteOrigin_Panels_Widgets_Layout\",\"raw\":false,\"grid\":0,\"cell\":0,\"id\":0,\"widget_id\":\"3f1d63b4-d73b-4799-b72c-88687e7a27c1\",\"style\":{\"id\":\"\",\"class\":\"\",\"widget_css\":\"\",\"mobile_css\":\"\",\"margin\":\"\",\"padding\":\"\",\"mobile_margin\":\"\",\"mobile_padding\":\"\",\"background\":\"\",\"background_image_attachment\":\"0\",\"background_image_attachment_fallback\":\"\",\"background_display\":\"tile\",\"background_image_size\":\"full\",\"background_image_opacity\":\"100\",\"border_color\":\"\",\"border_thickness\":\"1px\",\"border_radius\":\"1em 1em 1em 1em\",\"font_color\":\"\",\"link_color\":\"\",\"link_color_hover\":\"\",\"box_shadow_color\":\"rgba(0,0,0,0.15)\",\"box_shadow_offset_horizontal\":\"0\",\"box_shadow_offset_vertical\":\"5px\",\"box_shadow_blur\":\"15px\",\"box_shadow_spread\":\"\",\"white_featured_box\":\"on\",\"box_shadow_hover_color\":\"rgba(0,0,0,0.30)\",\"box_shadow_hover_offset_horizontal\":\"0\",\"box_shadow_hover_offset_vertical\":\"5px\",\"box_shadow_hover_blur\":\"15px\",\"box_shadow_hover_spread\":\"\"}}}],\"grids\":[{\"cells\":1,\"style\":{\"id\":\"\",\"class\":\"\",\"cell_class\":\"\",\"row_css\":\"\",\"mobile_css\":\"\",\"bottom_margin\":\"\",\"gutter\":\"\",\"padding\":\"\",\"row_stretch\":\"\",\"collapse_behaviour\":\"\",\"collapse_order\":\"\",\"cell_alignment\":\"flex-start\",\"mobile_bottom_margin\":\"\",\"mobile_cell_margin\":\"\",\"mobile_padding\":\"\",\"background\":\"\",\"background_image_attachment\":\"0\",\"background_image_attachment_fallback\":\"\",\"background_display\":\"tile\",\"background_image_size\":\"full\",\"background_image_opacity\":\"100\",\"border_color\":\"\",\"border_thickness\":\"1px\",\"border_radius\":\"\",\"box_shadow_color\":\"rgba(0,0,0,0.15)\",\"box_shadow_offset_horizontal\":\"0\",\"box_shadow_offset_vertical\":\"5px\",\"box_shadow_blur\":\"15px\",\"box_shadow_spread\":\"\",\"box_shadow_hover_color\":\"rgba(0,0,0,0.30)\",\"box_shadow_hover_offset_horizontal\":\"0\",\"box_shadow_hover_offset_vertical\":\"5px\",\"box_shadow_hover_blur\":\"15px\",\"box_shadow_hover_spread\":\"\"}}],\"grid_cells\":[{\"grid\":0,\"index\":0,\"weight\":1,\"style\":[]}],\"name\":\"Chronic Pain CTA\"}"
Advertisement
Add Comment
Please, Sign In to add comment