Make WordPress Themes

Changeset 179741


Ignore:
Timestamp:
11/17/2022 02:18:34 AM (3 years ago)
Author:
themedropbox
Message:

New version of Trending News - 1.0.1

Location:
trending-news/1.0.1
Files:
3 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trending-news/1.0.1/functions.php

    r178427 r179741  
    5757* Unregister unused customizer section for theme
    5858*/
    59 function draftnews_unregister_extra_section( $wp_customize ) {
     59function trending_news_unregister_extra_section( $wp_customize ) {
    6060    $wp_customize->remove_section('walkerpress_trendingtags_options');
    6161    $wp_customize->remove_control('latest_post_heading');
     
    6363    $wp_customize->remove_control('focus_news_ticker_heading');
    6464}
    65 add_action( 'customize_register', 'draftnews_unregister_extra_section', 11 );
     65add_action( 'customize_register', 'trending_news_unregister_extra_section', 11 );
     66
     67function trending_news_dynamic_style() {
     68    wp_enqueue_style(
     69        'custom-style',
     70        get_stylesheet_directory_uri() . '/style.css'
     71    );
     72   
     73    $main_menu_secondary_color = get_theme_mod('walkerpress_navigation_secondary_color','#a1f996');
     74    $my_custom_css = "
     75        header.header-layout-1 button.global-search-icon{
     76            background:$main_menu_secondary_color;
     77        }
     78    ";
     79    wp_add_inline_style( 'custom-style', $my_custom_css );
     80}
     81add_action( 'wp_enqueue_scripts', 'trending_news_dynamic_style' );
    6682
    6783if(!function_exists('trending_news_footer_copyright')){
  • trending-news/1.0.1/readme.txt

    r178427 r179741  
    55
    66Requires at least: 5.0
    7 Tested up to: 6.0
     7Tested up to: 6.1
    88Requires PHP: 5.6
    9 Stable tag: 1.0.0
     9Stable tag: 1.0.1
    1010License: GNU General Public License v2 or later
    1111License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    2929
    3030== Changelog =
     31
     32= 1.0.1 - Novemver 17 2022
     33* Minor bug fix for search icon color in navigation
    3134
    3235= 1.0.0 - October 28 2022 =
  • trending-news/1.0.1/style.css

    r178427 r179741  
    66 Author URI:   https://walkerwp.com/
    77 Template:     walkerpress
    8  Version:      1.0.0
    9  Tested up to: 6.0
     8 Version:      1.0.1
     9 Tested up to: 6.1
    1010 Requires PHP: 5.6
    1111 License:      GNU General Public License v2 or later
Note: See TracChangeset for help on using the changeset viewer.