Guest User

Untitled

a guest
Dec 16th, 2024
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.84 KB | None | 0 0
  1. child theme functions.php:
  2. ---------------------------------------------------------------------
  3. <?php
  4.  
  5. function parent_theme_enqueue_styles() {
  6. wp_enqueue_style( 'physio-qt-style', get_template_directory_uri() . '/style.css', array( 'font-awesome', 'bootstrap' ) );
  7. wp_enqueue_style( 'physio-child-style', get_stylesheet_directory_uri() . '/style.css', 'physio-qt-style' );
  8. }
  9. add_action( 'wp_enqueue_scripts', 'parent_theme_enqueue_styles' );
  10.  
  11. if ( defined( 'SITEORIGIN_PANELS_VERSION' ) ) {
  12. require get_stylesheet_directory() . '/inc/siteorigin-page-builder.php';
  13. }
  14. ---------------------------------------------------------------------
  15.  
  16. contents of /inc/siteorigin-page-builder.php:
  17. ---------------------------------------------------------------------
  18. <?php
  19. /**
  20. * Register a custom layouts folder location.
  21. */
  22. function siteorigin_corp_child_layouts_folder( $layout_folders ) {
  23. $layout_folders[] = get_stylesheet_directory() . '/inc/layouts';
  24. return $layout_folders;
  25. }
  26. add_filter( 'siteorigin_panels_local_layouts_directories', 'siteorigin_corp_child_layouts_folder' );
  27. add_filter( 'siteorigin_panels_prebuilt_layouts', function( $layouts ) {
  28. // Sort layouts alphabetically.
  29. usort( $layouts, function( $a, $b ) {
  30. return strcmp( $a['id'], $b['id'] );
  31. } );
  32.  
  33. return $layouts;
  34. } );
  35. ---------------------------------------------------------------------
  36.  
  37. contents of /inc/layouts/:
  38. ---------------------------------------------------------------------
  39. file chronic-pain-cta.json
  40. file chronic-pain-cta.jpg
  41. ---------------------------------------------------------------------
  42.  
  43. contents of /inc/layouts/chronic-pain-cta.json
  44. ---------------------------------------------------------------------
  45. "{\"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