This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

Match Default Language covers language tab

  • Creator
    Topic
  • #25603
    bendov
    Member

    Hi there

    I have eight languages the last of which is obscured by the Match Default Language tab. This means that no matter how hard I try I cannot get to the last language in the theme options to set Header logo to to site title. I have actually tried the button to set the language to default but it does not seem to work. Any ideas what I can do to get to the language tab?

    Thanks

    Jeremy

    post image link http://postimg.org/image/lopiet6bn/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Author
    Replies
  • #25604
    Jason Bobich
    Keymaster

    Hi,

    That’s sort of a tough one to tackle. I can’t say I’ve ever run into that, where someone was using so many languages. Are you by chance using a child theme? If so, I could give you a code snippet to output some CSS that would adjust or hide it in some way?

    #25605
    bendov
    Member

    Yes I am using a child theme so a code snippet would be great 🙂

    Thanks

    #25612
    Jason Bobich
    Keymaster

    All right, give this a try in your child theme’s functions.php:

    function themeblvd_wpml_admin_fix() {
    
    	global $pagenow;
    
    	if ( $pagenow != 'themes.php' ) {
    		return;
    	}
    	?>
    	<style>
    	.tb-wpml-header {
    		max-width: none !important;
    	}
    	.tb-wpml-header .tb-wpml-nav .reset-button {
    		float: right;
    		position: relative !important;
    	}
    	</style>
    	<?php
    }
    add_action('admin_head', 'themeblvd_wpml_admin_fix');
    #25716
    bendov
    Member

    Hi jason

    I am finally back on this issue. I tried the function. Unfortunately it crashed so I had to install the original function.php. Now the last language does not show on choice but is still on the site.

    Is is possible I can change the information on the database itself. As it is a one off change it will be easy. If so, are you willing to let me know which table the information is kept in?

    Thanks

    Jeremy

    #25722
    Jason Bobich
    Keymaster

    I tried the function. Unfortunately it crashed so I had to install the original function.php. Now the last language does not show on choice but is still on the site.

    What I gave you is just a basic function that spits out some CSS styles in the admin. I actually tested the exact code on my end. Unless I’m missing something painfully obvious, it doesn’t make sense that it would crash your site. Is this your first time working with PHP in your child theme’s functions.php? Maybe there’s some way about how you’re putting it in there?

    Also, when you say your site “crashed” that’s not all that helpful, in the sense that we want to see a PHP error to tell us exactly what is going wrong. One way you can do this by turning on WP_DEBUG in your wp-config.php. With this on, when your site “crashes” (or you see a white screen), there will be an error message from your server telling you why. That’s what we want.

    https://codex.wordpress.org/WP_DEBUG

    Is is possible I can change the information on the database itself.

    In all honesty, I’m not sure I understand what you mean by this. I don’t know what you would change in your MySQL database that would have to do with this issue. This is just a basic styling issue because you have so many buttons (i.e. your languages) in that menu bar. So, as a fix, we’re just outputting some CSS style to correct the issue, which is honestly a fairly a basic solution, but should do the trick.

    #25724
    bendov
    Member

    I am not that familiar with php but I have added code to function file before. When you sent it by email it came with many line spaces etc. I am not sure if just copying this gave me a space somewhere that caused the error.

    I realise you are interested in sorting out the theme but I just want to get the Norwegian header which says barely corporate to say Intercessors for Israel. This is why I thought the database would be easy my end. I could just go in and change the name barely corporate in Norwegian to match the rest of the site. I hope this makes more sense

    Thanks

    Jeremy

    #25726
    Jason Bobich
    Keymaster

    When you sent it by email it came with many line spaces etc.

    This is probably the issue. You don’t want to be copying directly from an email the forum is automatically sending you. You want to copy from the code block here in the forum I’m posting for you. Who knows what your email client is doing to the characters, spaces, tabs, and quotations.

    I realise you are interested in sorting out the theme but I just want to get the Norwegian header which says barely corporate to say Intercessors for Israel.

    Sorry, I’m a bit confused. When you originally posted, you were describing the issue shown in this screenshot. And so this is what I was trying to help you fix.

    So, now you’re trying to change something else? I’m honestly not sure what you’re referring to when you say “Norwegian header which says barely corporate.”

    EDIT: Aw, I’m re-reading, and think you’re just trying to describe something on the theme options page. So, we’re back to the original issue — you need the theme options page to be accessible, which is what I’m trying to help you with.

    #25727
    Jason Bobich
    Keymaster

    If you want send me a login to your admin panel, I can put the code in your child theme functions.php for your, which will allow you to fully access the theme options page.

    If you want to do this, you can send the info through the form here:

    http://support.themeblvd.com/submit-private-information/

    If you do this, please post back here to tell me you sent the info.

    #25730
    bendov
    Member

    Hi Jason

    Okay I took the code above, put it into functions.php and it worked a dream. I can now see all the languages clearly.

    Sorry for all the confusion and thanks a lot for your help

    Jeremy

    #25731
    Jason Bobich
    Keymaster

    Awesome! No problem, I’m just glad you figured it out.

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

The forum ‘Barely Corporate Responsive WordPress Theme’ is closed to new topics and replies.