-
AuthorPosts
-
March 4, 2017 at 10:09 pm #755719
i changed some settings in heading.php ( f.e. – i want to have the opportunity to have modern-right placement).
so i copied heading.php to my child-theme folder /shortcodes
Then i changed the code in that copy to the wanted effect.And forced enfold to take that copy by:
add_filter('avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1); function avia_include_shortcode_template($paths) { $template_url = get_stylesheet_directory(); array_unshift($paths, $template_url.'/shortcodes/'); return $paths; }
changing f.e. a heading-right in heading.php (near line 75) :
array( "name" => __("Heading Style", 'avia_framework' ), "desc" => __("Select a heading style", 'avia_framework' ), "id" => "style", "type" => "select", "std" => "", "subtype" => array( __("Default Style", 'avia_framework' )=>'', __("Heading Style Modern (left)", 'avia_framework' )=>'blockquote modern-quote' , __("Heading Style Modern (right)", 'avia_framework' )=>'blockquote modern-quote modern-right', __("Heading Style Modern (centered)", 'avia_framework' )=>'blockquote modern-quote modern-centered', __("Heading Style Classic (centered, italic)", 'avia_framework' )=>'blockquote classic-quote') ),
but this does not do the trick – because the concerning css rule is not set in shortcodes.css
Setting this in quick css is possible but to think of that changing for me again and again is to hard for a simple mind.So if there is a little code snippet for functions.php it will be nicer for me.
My own codesnippets library is well sorted and documentedMarch 4, 2017 at 10:13 pm #755720for example : i have this here for adding css code concerning to admin options dialog.
this stretches the quick css input field to the whole width ( more place to edit)function admin_head_mod() { echo '<style type="text/css"> #avia_quick_css .avia_description {float: none;margin-bottom: 20px !important;padding-left: 0 !important;width: 98%} #avia_quick_css .avia_control {float: left;max-width: 98% !important;width: 98% !important} .avia_footer_links li {float: left;padding-right: 20px} .avia_footer .avia_footer_save {float: left} </style>'; } add_action('admin_head', 'admin_head_mod');
is there an equivalent to the question above ?
March 4, 2017 at 10:19 pm #755722ok – sometimes i’m too confused that i can’t see the wood for trees:
function wp_head_mod() { echo '<style type="text/css"> body .av-special-heading.modern-right {text-align: right !important} </style>'; } add_action('wp_head', 'wp_head_mod');
that works
March 5, 2017 at 12:18 am #755750 -
AuthorPosts
- You must be logged in to reply to this topic.