• Is it possible to switch the social media icon section to a widget? I don’t need the social media links. But I would like to fill that empty space up there with a widget. I tried the following code to create the widget area there, but with no luck.

    From functions.php:

    // Add a widget area.
    if (function_exists('register_sidebar')) {
     register_sidebar(array(
     'name' => 'Header Widget Area',
     'id' => 'extra-widget-area',
     'description' => 'Extra widget area in the header',
     'before_widget' => '<div class="widget my-extra-widget">',
     'after_widget' => '</div>',
     'before_title' => '<h2>',
     'after_title' => '</h2>'
     ));
    }
    
    // Place the widget area after the header
    add_action ('__after_header', 'add_my_widget_area', 10);
    function add_my_widget_area() {
     if (function_exists('dynamic_sidebar')) {
     dynamic_sidebar('Extra Header Widget Area');
     }
    }

    This creates the widget area under widgets but nothing shows up on the frontend.

Viewing 1 replies (of 1 total)
  • Hello,
    Please don’t try and modify the themes core files. If you do so all your changes will be removed once the theme is updated. If you want to make your own changes please build/download and use a child theme.
    You can see how you can build a child theme in this link https://catchthemes.com/blog/create-child-theme-wordpress/
    And If you want to download a Child theme of the current theme you can see on the bottom of the page of the above link.

    But I recommend you to use CATCH WEB TOOL plugin.
    Install and activate it, Then go to dashboard => Catch Web Tools => Social Icons =>Enable It => move to the bottom and place the URL of your social icons => save your changes . Then finally, from the Widget option, add the CWT: SOCIAL ICONS widget to your preferred sidebar.

    regards,
    bplv

Viewing 1 replies (of 1 total)
  • The topic ‘Replacing Social Media Icons’ is closed to new replies.