Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #26842

    Hi I have some questions for the Enfold theme. You may refer to my site on http://goo.gl/yh6VJh

    1) There is a pipe | symbol in the title of every page that separates the website title and the page title. For the main page only, I did not put any page title because I just want it to show the website title. Is there anyway I can remove the pipe symbol from this page only?

    2) How can I put the social media icons in the footer? I would like to have a row of social media icons under my “contact us” section. I tried pasting the source code in a text widget, but only the first icon appear. How can I have the remaining icons appear too?

    Thank you!

    #131821

    Hi,

    1.) Edit functions.php, add this code:

    add_filter('avf_title_tag','new_avf_title_tag');
    function new_avf_title_tag($title)
    {
    $title = get_bloginfo('name').'';
    return $title;
    }

    2.) Edit footer.php, find this code:

    echo "<div class='sub_menu_socket'>";
    $args = array('theme_location'=>'avia3', 'fallback_cb' => '', 'depth'=>1);
    wp_nav_menu($args);
    echo "</div>";

    Replace it with:

    $social_args = array('outside'=>'ul', 'inside'=>'li', 'append' => '');

    echo avia_social_media_icons($social_args);

    echo "<div class='sub_menu_socket'>";
    $args = array('theme_location'=>'avia3', 'fallback_cb' => '', 'depth'=>1);
    wp_nav_menu($args);
    echo "</div>";

    Add this on your custom.css or Quick CSS

    #socket .social_bookmarks {
    position: relative;
    float: right;
    }

    Regards,

    Ismael

    #131822

    Hi, thanks for your help.

    1), your code removed the pipe and anything after it for all pages. I only want the pipe removed for the landing page. For other pages, I would like to retain the original configuration “AAA | BBB”. Is this possible?

    2) Just to clarify, I would like a row of social media icons in the widgets area of the footer, not the socket area.

    #131823

    Hi,

    1.) Please replace the code with this:

    add_filter('avf_title_tag','new_avf_title_tag');
    function new_avf_title_tag($title)
    {
    if ( is_home() ) {
    $title = get_bloginfo('name').'';
    return $title;
    } else {
    $title = get_bloginfo('name').' | ';
    $title .= (is_front_page()) ? get_bloginfo('description') : wp_title('', false);
    $title = apply_filters('avf_title_tag', $title, wp_title('', false));

    return $title;
    }
    }

    2.) You can use wordpress social media plugins like addthis and sharethis.

    Regards,

    Ismael

    #131824

    Hi

    1) The code does not work. It will cause my site to have an error.

    2) I am trying to shift the usual social media icons from the top to the footer area. The icons are supposed to link to my facebook, twitter etc. accounts, not to allow the visitors to share the webpage. In short, I would like to have those default social media icons of the theme in the footer.

    #131825

    Hi,

    1.) My bad, please try this:

    add_filter('avf_title_tag','new_avf_title_tag');
    function new_avf_title_tag($title)
    {
    if ( is_front_page() ) {
    $title = get_bloginfo('name').'';
    return $title;
    } else {
    $title = get_bloginfo('name').' | ';
    $title .= (is_front_page()) ? get_bloginfo('description') : wp_title('', false);
    return $title;
    }
    }

    2.) Edit footer.php, find this code:

    <span class='copyright'><?php echo $copyright . $kriesi_at_backlink; ?></span>

    Below, add this code:

    <?php

    $social_args = array('outside'=>'ul', 'inside'=>'li', 'append' => '');

    echo avia_social_media_icons($social_args);

    ?>

    Edit custom.css or Quick CSS, add this code:

    #socket .social_bookmarks {
    float: right;
    }

    #header_meta .social_bookmarks {
    display: none;
    }

    Regards,

    Ismael

    #131826

    Hi, number 1 is working, but number 2 is for displaying the icons in the socket.

    I need the social icons in the widgets area of the footer. I tried copying the html codes but it only display one icon. The other icons cannot be displayed in a horizontal line.

    #131827

    Hi,

    Please use this plugins for the social icons on footer widgets

    http://wordpress.org/plugins/addthis/

    http://wordpress.org/plugins/share-this/

    Regards,

    Ismael

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Remove pipe in title of main page; Social media icons in footer’ is closed to new replies.