Advertisement
Guest User

mycss

a guest
Mar 27th, 2015
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.09 KB | None | 0 0
  1. <?php
  2.  
  3. global $avia_config;
  4.  
  5. add_filter( 'avf_google_heading_font', 'avia_add_heading_font');
  6. function avia_add_heading_font($fonts)
  7. {
  8. $fonts['Roboto 2'] = 'Roboto:300,700,400&subset=latin,latin-ext';
  9. return $fonts;
  10. }
  11.  
  12. add_filter( 'avf_google_content_font', 'avia_add_content_font');
  13. function avia_add_content_font($fonts)
  14. {
  15.  
  16. $fonts['Roboto 2'] = 'Roboto:300,700,400&subset=latin,latin-ext';
  17. return $fonts;
  18. }
  19.  
  20. /*
  21. * if you run a child theme and dont want to load the default functions.php file
  22. * set the global var below in you childthemes function.php to true:
  23. *
  24. * example: global $avia_config; $avia_config['use_child_theme_functions_only'] = true;
  25. * The default functions.php file will then no longer be loaded. You need to make sure then
  26. * to include framework and functions that you want to use by yourself.
  27. *
  28. * This is only recommended for advanced users
  29. */
  30.  
  31. if(isset($avia_config['use_child_theme_functions_only'])) return;
  32.  
  33.  
  34. /*
  35. * create a global var which stores the ids of all posts which are displayed on the current page. It will help us to filter duplicate posts
  36. */
  37. $avia_config['posts_on_current_page'] = array();
  38.  
  39.  
  40. /*
  41. * wpml multi site config file
  42. * needs to be loaded before the framework
  43. */
  44.  
  45. require_once( 'config-wpml/config.php' );
  46.  
  47.  
  48. /*
  49. * These are the available color sets in your backend.
  50. * If more sets are added users will be able to create additional color schemes for certain areas
  51. *
  52. * The array key has to be the class name, the value is only used as tab heading on the styling page
  53. */
  54.  
  55.  
  56. $avia_config['color_sets'] = array(
  57. 'header_color' => 'Logo Area',
  58. 'main_color' => 'Main Content',
  59. 'alternate_color' => 'Alternate Content',
  60. 'footer_color' => 'Footer',
  61. 'socket_color' => 'Socket'
  62. );
  63.  
  64.  
  65.  
  66. /*
  67. * add support for responsive mega menus
  68. */
  69.  
  70. add_theme_support('avia_mega_menu');
  71.  
  72.  
  73.  
  74.  
  75. /*
  76. * deactivates the default mega menu and allows us to pass individual menu walkers when calling a menu
  77. */
  78.  
  79. add_filter('avia_mega_menu_walker', '__return_false');
  80.  
  81.  
  82. /*
  83. * adds support for the new avia sidebar manager
  84. */
  85.  
  86. add_theme_support('avia_sidebar_manager');
  87.  
  88. /*
  89. * Filters for post formats etc
  90. */
  91. //add_theme_support('avia_queryfilter');
  92.  
  93.  
  94. /*
  95. * Register theme text domain
  96. */
  97. if(!function_exists('avia_lang_setup'))
  98. {
  99. add_action('after_setup_theme', 'avia_lang_setup');
  100.  
  101. function avia_lang_setup()
  102. {
  103. $lang = apply_filters('ava_theme_textdomain_path', get_template_directory() . '/lang');
  104. load_theme_textdomain('avia_framework', $lang);
  105. }
  106.  
  107. avia_lang_setup();
  108. }
  109.  
  110.  
  111.  
  112. ##################################################################
  113. # AVIA FRAMEWORK by Kriesi
  114.  
  115. # this include calls a file that automatically includes all
  116. # the files within the folder framework and therefore makes
  117. # all functions and classes available for later use
  118.  
  119. require_once( 'framework/avia_framework.php' );
  120.  
  121. ##################################################################
  122.  
  123.  
  124. /*
  125. * Register additional image thumbnail sizes
  126. * Those thumbnails are generated on image upload!
  127. *
  128. * If the size of an array was changed after an image was uploaded you either need to re-upload the image
  129. * or use the thumbnail regeneration plugin: http://wordpress.org/extend/plugins/regenerate-thumbnails/
  130. */
  131.  
  132. $avia_config['imgSize']['widget'] = array('width'=>36, 'height'=>36); // small preview pics eg sidebar news
  133. $avia_config['imgSize']['square'] = array('width'=>180, 'height'=>180); // small image for blogs
  134. $avia_config['imgSize']['featured'] = array('width'=>1500, 'height'=>430 ); // images for fullsize pages and fullsize slider
  135. $avia_config['imgSize']['featured_large'] = array('width'=>1500, 'height'=>630 ); // images for fullsize pages and fullsize slider
  136. $avia_config['imgSize']['extra_large'] = array('width'=>1500, 'height'=>1500 , 'crop' => false); // images for fullscrren slider
  137. $avia_config['imgSize']['portfolio'] = array('width'=>495, 'height'=>400 ); // images for portfolio entries (2,3 column)
  138. $avia_config['imgSize']['portfolio_small'] = array('width'=>260, 'height'=>185 ); // images for portfolio 4 columns
  139. $avia_config['imgSize']['gallery'] = array('width'=>845, 'height'=>684 ); // images for portfolio entries (2,3 column)
  140. $avia_config['imgSize']['magazine'] = array('width'=>710, 'height'=>375 ); // images for magazines
  141. $avia_config['imgSize']['masonry'] = array('width'=>705, 'height'=>705 , 'crop' => false); // images for fullscreen masonry
  142. $avia_config['imgSize']['entry_with_sidebar'] = array('width'=>845, 'height'=>321); // big images for blog and page entries
  143. $avia_config['imgSize']['entry_without_sidebar']= array('width'=>1210, 'height'=>423 ); // images for fullsize pages and fullsize slider
  144. $avia_config['imgSize'] = apply_filters('avf_modify_thumb_size', $avia_config['imgSize']);
  145.  
  146.  
  147. $avia_config['selectableImgSize'] = array(
  148. 'square' => __('Square','avia_framework'),
  149. 'featured' => __('Featured Thin','avia_framework'),
  150. 'featured_large' => __('Featured Large','avia_framework'),
  151. 'portfolio' => __('Portfolio','avia_framework'),
  152. 'gallery' => __('Gallery','avia_framework'),
  153. 'entry_with_sidebar' => __('Entry with Sidebar','avia_framework'),
  154. 'entry_without_sidebar' => __('Entry without Sidebar','avia_framework'),
  155. 'extra_large' => __('Fullscreen Sections/Sliders','avia_framework'),
  156.  
  157. );
  158.  
  159.  
  160.  
  161. avia_backend_add_thumbnail_size($avia_config);
  162.  
  163. if ( ! isset( $content_width ) ) $content_width = $avia_config['imgSize']['featured']['width'];
  164.  
  165.  
  166.  
  167.  
  168. /*
  169. * register the layout classes
  170. *
  171. */
  172.  
  173. $avia_config['layout']['fullsize'] = array('content' => 'av-content-full alpha', 'sidebar' => 'hidden', 'meta' => '','entry' => '');
  174. $avia_config['layout']['sidebar_left'] = array('content' => 'av-content-small', 'sidebar' => 'alpha' ,'meta' => 'alpha', 'entry' => '');
  175. $avia_config['layout']['sidebar_right'] = array('content' => 'av-content-small alpha','sidebar' => 'alpha', 'meta' => 'alpha', 'entry' => 'alpha');
  176.  
  177.  
  178.  
  179.  
  180.  
  181. /*
  182. * These are some of the font icons used in the theme, defined by the entypo icon font. the font files are included by the new aviaBuilder
  183. * common icons are stored here for easy retrieval
  184. */
  185.  
  186. $avia_config['font_icons'] = apply_filters('avf_default_icons', array(
  187.  
  188. //post formats + types
  189. 'standard' => array( 'font' =>'entypo-fontello', 'icon' => 'ue836'),
  190. 'link' => array( 'font' =>'entypo-fontello', 'icon' => 'ue822'),
  191. 'image' => array( 'font' =>'entypo-fontello', 'icon' => 'ue80f'),
  192. 'audio' => array( 'font' =>'entypo-fontello', 'icon' => 'ue801'),
  193. 'quote' => array( 'font' =>'entypo-fontello', 'icon' => 'ue833'),
  194. 'gallery' => array( 'font' =>'entypo-fontello', 'icon' => 'ue80e'),
  195. 'video' => array( 'font' =>'entypo-fontello', 'icon' => 'ue80d'),
  196. 'portfolio' => array( 'font' =>'entypo-fontello', 'icon' => 'ue849'),
  197. 'product' => array( 'font' =>'entypo-fontello', 'icon' => 'ue859'),
  198.  
  199. //social
  200. 'behance' => array( 'font' =>'entypo-fontello', 'icon' => 'ue915'),
  201. 'dribbble' => array( 'font' =>'entypo-fontello', 'icon' => 'ue8fe'),
  202. 'facebook' => array( 'font' =>'entypo-fontello', 'icon' => 'ue8f3'),
  203. 'flickr' => array( 'font' =>'entypo-fontello', 'icon' => 'ue8ed'),
  204. 'gplus' => array( 'font' =>'entypo-fontello', 'icon' => 'ue8f6'),
  205. 'linkedin' => array( 'font' =>'entypo-fontello', 'icon' => 'ue8fc'),
  206. 'instagram' => array( 'font' =>'entypo-fontello', 'icon' => 'ue909'),
  207. 'pinterest' => array( 'font' =>'entypo-fontello', 'icon' => 'ue8f8'),
  208. 'skype' => array( 'font' =>'entypo-fontello', 'icon' => 'ue90d'),
  209. 'tumblr' => array( 'font' =>'entypo-fontello', 'icon' => 'ue8fa'),
  210. 'twitter' => array( 'font' =>'entypo-fontello', 'icon' => 'ue8f1'),
  211. 'vimeo' => array( 'font' =>'entypo-fontello', 'icon' => 'ue8ef'),
  212. 'rss' => array( 'font' =>'entypo-fontello', 'icon' => 'ue853'),
  213. 'youtube' => array( 'font' =>'entypo-fontello', 'icon' => 'ue921'),
  214. 'xing' => array( 'font' =>'entypo-fontello', 'icon' => 'ue923'),
  215. 'soundcloud' => array( 'font' =>'entypo-fontello', 'icon' => 'ue913'),
  216. 'five_100_px' => array( 'font' =>'entypo-fontello', 'icon' => 'ue91d'),
  217. 'vk' => array( 'font' =>'entypo-fontello', 'icon' => 'ue926'),
  218. 'reddit' => array( 'font' =>'entypo-fontello', 'icon' => 'ue927'),
  219. 'digg' => array( 'font' =>'entypo-fontello', 'icon' => 'ue928'),
  220. 'delicious' => array( 'font' =>'entypo-fontello', 'icon' => 'ue929'),
  221. 'mail' => array( 'font' =>'entypo-fontello', 'icon' => 'ue805'),
  222.  
  223. //woocomemrce
  224. 'cart' => array( 'font' =>'entypo-fontello', 'icon' => 'ue859'),
  225. 'details' => array( 'font' =>'entypo-fontello', 'icon' => 'ue84b'),
  226.  
  227. //bbpress
  228. 'supersticky' => array( 'font' =>'entypo-fontello', 'icon' => 'ue808'),
  229. 'sticky' => array( 'font' =>'entypo-fontello', 'icon' => 'ue809'),
  230. 'one_voice' => array( 'font' =>'entypo-fontello', 'icon' => 'ue83b'),
  231. 'multi_voice' => array( 'font' =>'entypo-fontello', 'icon' => 'ue83c'),
  232. 'closed' => array( 'font' =>'entypo-fontello', 'icon' => 'ue824'),
  233. 'sticky_closed' => array( 'font' =>'entypo-fontello', 'icon' => 'ue808\ue824'),
  234. 'supersticky_closed' => array( 'font' =>'entypo-fontello', 'icon' => 'ue809\ue824'),
  235.  
  236. //navigation, slider & controls
  237. 'play' => array( 'font' =>'entypo-fontello', 'icon' => 'ue897'),
  238. 'pause' => array( 'font' =>'entypo-fontello', 'icon' => 'ue899'),
  239. 'next' => array( 'font' =>'entypo-fontello', 'icon' => 'ue879'),
  240. 'prev' => array( 'font' =>'entypo-fontello', 'icon' => 'ue878'),
  241. 'next_big' => array( 'font' =>'entypo-fontello', 'icon' => 'ue87d'),
  242. 'prev_big' => array( 'font' =>'entypo-fontello', 'icon' => 'ue87c'),
  243. 'close' => array( 'font' =>'entypo-fontello', 'icon' => 'ue814'),
  244. 'reload' => array( 'font' =>'entypo-fontello', 'icon' => 'ue891'),
  245. 'mobile_menu' => array( 'font' =>'entypo-fontello', 'icon' => 'ue8a5'),
  246.  
  247. //image hover overlays
  248. 'ov_external' => array( 'font' =>'entypo-fontello', 'icon' => 'ue832'),
  249. 'ov_image' => array( 'font' =>'entypo-fontello', 'icon' => 'ue869'),
  250. 'ov_video' => array( 'font' =>'entypo-fontello', 'icon' => 'ue897'),
  251.  
  252.  
  253. //misc
  254. 'search' => array( 'font' =>'entypo-fontello', 'icon' => 'ue803'),
  255. 'info' => array( 'font' =>'entypo-fontello', 'icon' => 'ue81e'),
  256. 'clipboard' => array( 'font' =>'entypo-fontello', 'icon' => 'ue8d1'),
  257. 'scrolltop' => array( 'font' =>'entypo-fontello', 'icon' => 'ue876'),
  258. 'scrolldown' => array( 'font' =>'entypo-fontello', 'icon' => 'ue877'),
  259. 'bitcoin' => array( 'font' =>'entypo-fontello', 'icon' => 'ue92a'),
  260.  
  261. ));
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268. add_theme_support( 'automatic-feed-links' );
  269.  
  270. ##################################################################
  271. # Frontend Stuff necessary for the theme:
  272. ##################################################################
  273.  
  274.  
  275.  
  276. /*
  277. * Register frontend javascripts:
  278. */
  279. if(!function_exists('avia_register_frontend_scripts'))
  280. {
  281. if(!is_admin()){
  282. add_action('wp_enqueue_scripts', 'avia_register_frontend_scripts');
  283. }
  284.  
  285. function avia_register_frontend_scripts()
  286. {
  287. $template_url = get_template_directory_uri();
  288. $child_theme_url = get_stylesheet_directory_uri();
  289.  
  290. //register js
  291. wp_enqueue_script( 'avia-compat', $template_url.'/js/avia-compat.js', array('jquery'), 2, false ); //needs to be loaded at the top to prevent bugs
  292. wp_enqueue_script( 'avia-default', $template_url.'/js/avia.js', array('jquery'), 3, true );
  293. wp_enqueue_script( 'avia-shortcodes', $template_url.'/js/shortcodes.js', array('jquery'), 3, true );
  294. wp_enqueue_script( 'avia-popup', $template_url.'/js/aviapopup/jquery.magnific-popup.min.js', array('jquery'), 2, true);
  295.  
  296. wp_enqueue_script( 'jquery' );
  297. wp_enqueue_script( 'wp-mediaelement' );
  298.  
  299.  
  300. if ( is_singular() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); }
  301.  
  302.  
  303. //register styles
  304. wp_register_style( 'avia-style' , $child_theme_url."/style.css", array(), '2', 'all' ); //register default style.css file. only include in childthemes. has no purpose in main theme
  305. wp_register_style( 'avia-custom', $template_url."/css/custom.css", array(), '2', 'all' );
  306.  
  307. wp_enqueue_style( 'avia-grid' , $template_url."/css/grid.css", array(), '2', 'all' );
  308. wp_enqueue_style( 'avia-base' , $template_url."/css/base.css", array(), '2', 'all' );
  309. wp_enqueue_style( 'avia-layout', $template_url."/css/layout.css", array(), '2', 'all' );
  310. wp_enqueue_style( 'avia-scs', $template_url."/css/shortcodes.css", array(), '2', 'all' );
  311. wp_enqueue_style( 'avia-popup-css', $template_url."/js/aviapopup/magnific-popup.css", array(), '1', 'screen' );
  312. wp_enqueue_style( 'avia-media' , $template_url."/js/mediaelement/skin-1/mediaelementplayer.css", array(), '1', 'screen' );
  313. wp_enqueue_style( 'avia-print' , $template_url."/css/print.css", array(), '1', 'print' );
  314.  
  315.  
  316. if ( is_rtl() ) {
  317. wp_enqueue_style( 'avia-rtl', $template_url."/css/rtl.css", array(), '1', 'all' );
  318. }
  319.  
  320.  
  321. global $avia;
  322. $safe_name = avia_backend_safe_string($avia->base_data['prefix']);
  323. $safe_name = apply_filters('avf_dynamic_stylesheet_filename', $safe_name);
  324.  
  325. if( get_option('avia_stylesheet_exists'.$safe_name) == 'true' )
  326. {
  327. $avia_upload_dir = wp_upload_dir();
  328. if(is_ssl()) $avia_upload_dir['baseurl'] = str_replace("http://", "https://", $avia_upload_dir['baseurl']);
  329.  
  330. $avia_dyn_stylesheet_url = $avia_upload_dir['baseurl'] . '/dynamic_avia/'.$safe_name.'.css';
  331. $version_number = get_option('avia_stylesheet_dynamic_version'.$safe_name);
  332. if(empty($version_number)) $version_number = '1';
  333.  
  334. wp_enqueue_style( 'avia-dynamic', $avia_dyn_stylesheet_url, array(), $version_number, 'all' );
  335. }
  336.  
  337. wp_enqueue_style( 'avia-custom');
  338.  
  339.  
  340. if($child_theme_url != $template_url)
  341. {
  342. wp_enqueue_style( 'avia-style');
  343. }
  344.  
  345. }
  346. }
  347.  
  348.  
  349. if(!function_exists('avia_remove_default_video_styling'))
  350. {
  351. if(!is_admin()){
  352. add_action('wp_footer', 'avia_remove_default_video_styling', 1);
  353. }
  354.  
  355. function avia_remove_default_video_styling()
  356. {
  357. //remove default style for videos
  358. wp_dequeue_style( 'mediaelement' );
  359. // wp_dequeue_script( 'wp-mediaelement' );
  360. // wp_dequeue_style( 'wp-mediaelement' );
  361. }
  362. }
  363.  
  364.  
  365.  
  366.  
  367. /*
  368. * Activate native wordpress navigation menu and register a menu location
  369. */
  370. if(!function_exists('avia_nav_menus'))
  371. {
  372. function avia_nav_menus()
  373. {
  374. global $avia_config, $wp_customize;
  375.  
  376. add_theme_support('nav_menus');
  377.  
  378. foreach($avia_config['nav_menus'] as $key => $value)
  379. {
  380. //wp-admin\customize.php does not support html code in the menu description - thus we need to strip it
  381. $name = (!empty($value['plain']) && !empty($wp_customize)) ? $value['plain'] : $value['html'];
  382. register_nav_menu($key, THEMENAME.' '.$name);
  383. }
  384. }
  385.  
  386. $avia_config['nav_menus'] = array( 'avia' => array('html' => __('Main Menu', 'avia_framework')),
  387. 'avia2' => array(
  388. 'html' => __('Secondary Menu <br/><small>(Will be displayed if you selected a header layout that supports a submenu <a target="_blank" href="'.admin_url('?page=avia#goto_header').'">here</a>)</small>', 'avia_framework'),
  389. 'plain'=> __('Secondary Menu - will be displayed if you selected a header layout that supports a submenu', 'avia_framework')),
  390. 'avia3' => array(
  391. 'html' => __('Footer Menu <br/><small>(no dropdowns)</small>', 'avia_framework'),
  392. 'plain'=> __('Footer Menu (no dropdowns)', 'avia_framework'))
  393. );
  394.  
  395. avia_nav_menus(); //call the function immediatly to activate
  396. }
  397.  
  398.  
  399.  
  400.  
  401.  
  402.  
  403.  
  404.  
  405.  
  406.  
  407. /*
  408. * load some frontend functions in folder include:
  409. */
  410.  
  411. require_once( 'includes/admin/register-portfolio.php' ); // register custom post types for portfolio entries
  412. require_once( 'includes/admin/register-widget-area.php' ); // register sidebar widgets for the sidebar and footer
  413. require_once( 'includes/loop-comments.php' ); // necessary to display the comments properly
  414. require_once( 'includes/helper-template-logic.php' ); // holds the template logic so the theme knows which tempaltes to use
  415. require_once( 'includes/helper-social-media.php' ); // holds some helper functions necessary for twitter and facebook buttons
  416. require_once( 'includes/helper-post-format.php' ); // holds actions and filter necessary for post formats
  417. require_once( 'includes/helper-markup.php' ); // holds the markup logic (schema.org and html5)
  418. require_once( 'includes/admin/register-plugins.php'); // register the plugins we need
  419.  
  420. if(current_theme_supports('avia_conditionals_for_mega_menu'))
  421. {
  422. require_once( 'includes/helper-conditional-megamenu.php' ); // holds the walker for the responsive mega menu
  423. }
  424.  
  425. require_once( 'includes/helper-responsive-megamenu.php' ); // holds the walker for the responsive mega menu
  426.  
  427.  
  428.  
  429.  
  430. //adds the plugin initalization scripts that add styles and functions
  431.  
  432. if(!current_theme_supports('deactivate_layerslider')) require_once( 'config-layerslider/config.php' );//layerslider plugin
  433.  
  434. require_once( 'config-bbpress/config.php' ); //compatibility with bbpress forum plugin
  435. require_once( 'config-templatebuilder/config.php' ); //templatebuilder plugin
  436. require_once( 'config-gravityforms/config.php' ); //compatibility with gravityforms plugin
  437. require_once( 'config-woocommerce/config.php' ); //compatibility with woocommerce plugin
  438. require_once( 'config-wordpress-seo/config.php' ); //compatibility with Yoast WordPress SEO plugin
  439. require_once( 'config-events-calendar/config.php' ); //compatibility with the Events Calendar plugin
  440.  
  441.  
  442. if(is_admin())
  443. {
  444. require_once( 'includes/admin/helper-compat-update.php'); // include helper functions for new versions
  445. }
  446.  
  447.  
  448.  
  449.  
  450. /*
  451. * dynamic styles for front and backend
  452. */
  453. if(!function_exists('avia_custom_styles'))
  454. {
  455. function avia_custom_styles()
  456. {
  457. require_once( 'includes/admin/register-dynamic-styles.php' ); // register the styles for dynamic frontend styling
  458. avia_prepare_dynamic_styles();
  459. }
  460.  
  461. add_action('init', 'avia_custom_styles', 20);
  462. add_action('admin_init', 'avia_custom_styles', 20);
  463. }
  464.  
  465.  
  466.  
  467.  
  468. /*
  469. * activate framework widgets
  470. */
  471. if(!function_exists('avia_register_avia_widgets'))
  472. {
  473. function avia_register_avia_widgets()
  474. {
  475. register_widget( 'avia_newsbox' );
  476. register_widget( 'avia_portfoliobox' );
  477. register_widget( 'avia_socialcount' );
  478. register_widget( 'avia_combo_widget' );
  479. register_widget( 'avia_partner_widget' );
  480. register_widget( 'avia_google_maps' );
  481. register_widget( 'avia_fb_likebox' );
  482.  
  483.  
  484. }
  485.  
  486. avia_register_avia_widgets(); //call the function immediatly to activate
  487. }
  488.  
  489.  
  490.  
  491. /*
  492. * add post format options
  493. */
  494. add_theme_support( 'post-formats', array('link', 'quote', 'gallery','video','image','audio' ) );
  495.  
  496.  
  497.  
  498. /*
  499. * Remove the default shortcode function, we got new ones that are better ;)
  500. */
  501. add_theme_support( 'avia-disable-default-shortcodes', true);
  502.  
  503.  
  504. /*
  505. * compat mode for easier theme switching from one avia framework theme to another
  506. */
  507. add_theme_support( 'avia_post_meta_compat');
  508.  
  509.  
  510. /*
  511. * make sure that enfold widgets dont use the old slideshow parameter in widgets, but default post thumbnails
  512. */
  513. add_theme_support('force-post-thumbnails-in-widget');
  514.  
  515.  
  516.  
  517.  
  518.  
  519.  
  520.  
  521. /*
  522. * register custom functions that are not related to the framework but necessary for the theme to run
  523. */
  524.  
  525. require_once( 'functions-enfold.php');
  526.  
  527.  
  528. /*
  529. * add option to edit elements via css class
  530. */
  531. // add_theme_support('avia_template_builder_custom_css');
  532.  
  533.  
  534. add_filter('avf_dynamic_stylesheet_filename', 'avia_change_filename');
  535. function avia_change_filename(){
  536. return 'mycss';
  537. }
  538.  
  539.  
  540.  
  541.  
  542. remove_action('wp_head','avia_debugging_info',1000);
  543.  
  544. /**
  545. * remove image tag
  546. */
  547. function add_custom_script(){
  548. ?>
  549. <script>
  550. jQuery(window).load(function(){
  551. jQuery('img').removeAttr('title');
  552. });
  553. </script>
  554. <?php
  555. }
  556. add_action('wp_footer', 'add_custom_script');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement