ap_scripts_front()
Description #
Enqueue scripts.
Source #
File: templates/functions.php
function ap_scripts_front() { ap_assets(); // Localize scripts for enqueue. ap_localize_script(); if ( ! is_anspress() && ap_opt( 'load_assets_in_anspress_only' ) ) { return; } ap_enqueue_scripts(); $custom_css = ' #anspress .ap-q-cells{ margin-' . ( is_rtl() ? 'right' : 'left' ) . ': ' . ( ap_opt( 'avatar_size_qquestion' ) + 10 ) . 'px; } #anspress .ap-a-cells{ margin-' . ( is_rtl() ? 'right' : 'left' ) . ': ' . ( ap_opt( 'avatar_size_qanswer' ) + 10 ) . 'px; }'; wp_add_inline_style( 'anspress-main', $custom_css ); do_action( 'ap_enqueue' ); wp_enqueue_style( 'ap-overrides', ap_get_theme_url( 'css/overrides.css' ), array( 'anspress-main' ), AP_VERSION ); }
Expand full source code Collapse full source code View on GitHub: templates/functions.php:18
Add your comment