EduardET

Functions :: Blog with not Ajax Pagination

Dec 22nd, 2017
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.65 KB | None | 0 0
  1. /*================================================
  2. #4 Load custom Blog Module
  3. ================================================*/
  4. function divi_child_theme_add_custom_module() {
  5.     get_template_part( 'custom-modules/Blog-no-ajax' );
  6.     new WPC_ET_Builder_Module_Blog();
  7. }
  8. add_action('et_builder_ready', 'divi_child_theme_add_custom_module' );
  9.  
  10. /*================================================
  11. #5 Add blog icon to the Blog Module
  12. ================================================*/
  13. function custom_modules_css() {
  14.   echo '<style>
  15.             .et-pb-all-modules li.et_pb_blog_no_ajax:before {
  16.                 content: "\34";
  17.             }
  18.  </style>';
  19. }
  20. add_action('admin_head', 'custom_modules_css');
Advertisement
Add Comment
Please, Sign In to add comment