Forum Replies Created

Viewing 14 replies - 1 through 14 (of 14 total)
  • Hi Juanyo I solved this problem with some editing. I’ll show you how.
    Go to hueman/inc/featured.php and on line 10 is this code
    'cat' => ot_get_option('featured-category')
    change “cat” to “tag_id” like this
    'tag_id'=> ot_get_option('featured-category')
    then go to hueman/functions/theme-options.php an on line 215 should be this
    'label' => 'Featured Category'
    change Featured Category to Featured Tag
    'label'=> 'Featured Tag'
    and on line 218 should be code
    'type' => 'category-select'
    change it to tag-select
    'type' => 'tag-select'
    and then edit function.php file in folder hueman, on line 467 is this code
    'category' => ot_get_option('featured-category')
    change category to tag_id
    'tag_id' => ot_get_option('featured-category')

    It should help you ??

    I know where problem is! Server have safe_mod on. But cURL doesn’t work with activated safe_mode. But safe_mode is on because helps protect server against hackers. But I still wanna use your shareicons for their simplicity and elegancy ?? Is there some possibility that could it work without cURL? ??

    I have the same problem with G+ button. But on my webhosting is cURL activated (enableb). So I don’t know where the problem is ??

    Look into folde LANGUAGES in your theme folder. Download application called POEDIT. Open en_US.po with this application and translate whatever you want. Then save that file with string of your language. If language of your wordpress is english only save that file. I’m czech so I would use name of file cs_CZ ?? it’s that simple.

    Thread Starter mettzed

    (@mettzed)

    I tried upload phpinfo.php file on my web and it says
    cURL support – enabled
    cURL information – 7.21.0
    Age – 3 years
    https://i.nahraj.to/f/xvq.jpg

    What you think about it?

    Thread Starter mettzed

    (@mettzed)

    I’ try and let U know

    Thread Starter mettzed

    (@mettzed)

    I’ copied every file of theme on my ftp I’m sure!

    Thread Starter mettzed

    (@mettzed)

    I don’t know if it existed before update because I tried your theme via Vertrigo Server in my pc. I uploaded 2.0.4. to my FTP. I’ll try contact my webhost.

    But one more thing, there is hole betweet facebook and pinterest icons. When I click on this hole it’ll show me normal Google+ share window and i can share my page. It’s wierd. It looks like that there is no icon at all but the functionality is good.

    https://i.nahraj.to/f/xvl.png

    Thread Starter mettzed

    (@mettzed)

    I tried put this code `<link href=’https://fonts.googleapis.com/css?family=Titillium+Web:400,300,300italic,400italic,600&subset=latin,latin-ext&#8217; rel=’stylesheet’ type=’text/css’>
    ` into header.php and it works. What is your opinion on website speed? Should I use google font api or force web browser to load fonts from my site?

    Thread Starter mettzed

    (@mettzed)

    Thanks for your support ??
    But I’ve founded this page https://fontpro.com/titillium-web-font-16148
    and as I see there is latin extended version.
    Do you thing that can work with your theme?

    THX man ?? I modified my header.php and functions.php, made 2 nav menus and it works ??

    I’m coding embryo but I guess you should edit ps-multi-languages.php. There is this code in the file.

    function get_multilingual_request_uri($url ,  $lang ){
    
    		if ( preg_match( '|\?lang='. $lang .'|' , $url) ||  preg_match( '|&lang='. $lang .'|' , $url ) ){
    			return $url;
    		}elseif( preg_match( '|\?lang=[\w]{2}|' , $url) ){
    			return preg_replace('|(\?)lang=([\w]{2})|' , "$1lang=" . $lang , $url);
    		}elseif( preg_match( '|&lang=[\w]{2}|' , $url) ){
    			return preg_replace('|(&)lang=([\w]{2})|' , "$1lang=" . $lang , $url);
    		}else{
    			if ( preg_match('|\?[\w]+=|', $url, $m )){
    				return $url . '&lang=' . $lang;
    			}else{
    				return $url . '?lang=' . $lang;

    My header navigation didn’t changed to foreign langueage and it is caused by the code in header.php file. There is this code in header.

    <?php
    					wp_nav_menu( array(
    					 'sort_column' =>'menu_order',
    					 'container' => 'ul',
    					 'theme_location' => 'header-nav',
    					 'fallback_cb' => 'null',
    					 'menu_id' => 'navbar',
    					 'link_before' => '',
    					 'link_after' => '',
    					 'depth' => 0,
    					 'walker' => new description_walker())
    					 );
    				?>

    And there is this code in menu-walker.php (file included in theme)

    <?php
    /*
    Menu Walker Class
    */
    class description_walker extends Walker_Nav_Menu
    {
          function start_el(&$output, $item, $depth, $args)
          {
               global $wp_query;
               $indent = ( $depth ) ? str_repeat( "\t", $depth ) : '';
    
               $class_names = $value = '';
    
               $classes = empty( $item->classes ) ? array() : (array) $item->classes;
    
    		   if ($item->menu_order == 1) {
    			 $classes[] = 'firstmenuitem';
    	       }
    
    		   if ($item->ID == get_theme_mod('lastmenuitem')) {
    			 $classes[] = 'lastmenuitem';
    		   }
    
               $class_names = join( ' ', apply_filters( 'nav_menu_css_class', array_filter( $classes ), $item ) );
               $class_names = ' class="'. esc_attr( $class_names ) . '"';
    
               $output .= $indent . '<li id="menu-item-'. $item->ID . '"' . $value . $class_names .'>';
    
               $attributes  = ! empty( $item->attr_title ) ? ' title="'  . esc_attr( $item->attr_title ) .'"' : '';
               $attributes .= ! empty( $item->target )     ? ' target="' . esc_attr( $item->target     ) .'"' : '';
               $attributes .= ! empty( $item->xfn )        ? ' rel="'    . esc_attr( $item->xfn        ) .'"' : '';
               $attributes .= ! empty( $item->url )        ? ' href="'   . esc_attr( $item->url        ) .'"' : '';
    
               $prepend = ' ';
               $append = ' ';
    		   //$prepend = '';
              // $append = '';
               $description  = ! empty( $item->description ) ? '<span>'.esc_attr( $item->description ).'</span>' : '';
    
               if($depth != 0)
               {
                   $description = $append = $prepend = "";
               }
    
                $item_output = $args->before;
                $item_output .= '<a'. $attributes .'>';
                $item_output .= $args->link_before .$prepend.apply_filters( 'the_title', $item->title, $item->ID ).$append;
                $item_output .= $description.$args->link_after;
                $item_output .= '</a>';
                $item_output .= $args->after;
    
                $output .= apply_filters( 'walker_nav_menu_start_el', $item_output, $item, $depth, $args );
                }
    }
    ?>

    Can somebody help me solve my problem with unchanged Header Navigation?

    My site is multilingual but my navigation menu on page is only in my first language. Is posible to translate Header Navigation of the theme?

Viewing 14 replies - 1 through 14 (of 14 total)