• Resolved mkaiit

    (@mkaiit)


    Hi
    I have a website in two languages one rtl (arabic) and one english. I use a theme called Mharty. The logo i put is perfectly reflected on english site and everything works great.

    Now I want to add another logo (two logos on the site. One right and one left) so i made the two logos in one image. Uploaded it to the site. On arabic site its perfect. On English site the exact same image appears so it is not properly displayed.
    My problem is i want to put one logo on arabic site and another logo image on english site. I googled a lot am not so much techy but i found to add a logo to String Translation on polylang. It said i should now what key does my theme use for logo and that this is on wp options table. I went there but didn’t see anything called logo. I tried the inspect element amd saw its called in css mh_logo
    So plz advice me what shall i do?
    I am new at where i work and general manager asked me to do this so i really want to do it. I hope

    Thanks a lot
    I can send the link in private only but it doesnt include the logos only normal one logo as its live site.

    https://www.ads-software.com/plugins/polylang/

Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Support Chrystl

    (@chrystl)

    Hi
    Please provide a link where appear your two logos.

    Thread Starter mkaiit

    (@mkaiit)

    This is the english side
    [Link redacted]

    This is the arabic side
    [Link redacted]

    Plz note the current logo in above links is not the one i am having trouble with. Bcoz above links r live website. I have put the logo i want to add in an image here:
    [Link redacted]

    U will see the two logos. When i go to englsih site here its the exact same logo which is wrng displayed
    Waiting ur replay sir thanks a lot

    Plugin Support Chrystl

    (@chrystl)

    In your header.php you should create a <div id="logo"></div> just after <div class="container clearfix"></div>.

    Thread Starter mkaiit

    (@mkaiit)

    Hi Sir
    i go to Edit in Appearance
    I saw this at the end of header.php file

    <body <?php body_class(); ?>>
    	<div id="page-container" class="<?php if ( ! is_page_template( 'page-template-trans.php' ) ) echo'not-trans';?>">
        	<?php do_action('mh_before_start_container'); ?>
    		<?php mh_header_menu();?>
    		<div id="mh-main-area">
    			<?php do_action('mh_before_content'); ?>

    now i paste under that this code?
    <div id=”logo”></div>

    or ur replay was general and I should put certain code there?

    please advice

    thanks a looooot

    A trick I use: Open webpage in browser. Right click / View source. Then scroll down thru the source code until you find your logo. (remember, this page is built by php engine on the fly so it is not the page as written). In the source code, when you find your logo, take note of the <div class that it is in. There may be several listed in the tag.

    If you can find this class in the css stylesheet, you can adjust the settings there. If not, it may not be there but need to written into php file.

    I download a copy of my WordPress site with FTP.
    I Windows search the theme folder for the class that I am looking and the search will show me which file it is. I can then open that file and find the class to make the adjustments.

    You can also do like he said above, add a div style of your own to the css. Of course you’ll have to name the class in the php header.php file also with something like:

    <a>"><img src="<?php echo QUALITY_TEMPLATE_DIR_URI; ?>/images/logo.png"></a>

    From this I can easily change the logo image and add size or whatever to the code. It works but not all themes are set up this way. So far it has worked on 3 themes I’ve tried it on. Once you find your logo in the source code, you can go from there.

    Different one:

    <?php if ( of_get_option('logo')!="") { ?>
            <a>">
            <img src="<?php echo esc_url(of_get_option('logo')); ?>" class="site-logo" alt="<?php bloginfo('name'); ?>" />
            </a>

    Here the logo tag includes a class so I can find and edit that or create one of my own in the css and change it here in the header.php. Hope some of this helps a little. I know I had a hard time too when I first started with WordPress. I thinks the software is a lot more trouble than it’s worth. Too much work and aggravation to deal with trying to customize there lame WordPress themes which are only partially built when we get them (Of course they don’t tell you that).

    Thread Starter mkaiit

    (@mkaiit)

    @stillbluewaters
    Thanks a lot appreciate it but not sure I can do this alone. Will try not sure.

    @crystl
    Plz can u answer me about the code or am lost?

    just remember to keep a saved copy of any files you work on so if it doesn’t work or you mess it up, you can put the original file back in place and maybe try again.

    If your header worked on one, then it should work on both. Just put the logo image you want on each one and skip the double logo thing.

    Thread Starter mkaiit

    (@mkaiit)

    @stillbluewaters
    Yes it worked on one but the other the image dowsnt look correct bcoz its another language. This is my problem.

    I home cryslt can replay me too

    I don’t know, tell us what theme you’re using, put the header images on best you can, then post the urls of the two pages here so I can look at the source code and theme files. I don’t even work here ??

    Thread Starter mkaiit

    (@mkaiit)

    Would u plz remove ny sites links and the img i have uploaded? Thanks moderator

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Please don’t re-add the ‘modlook’ tag, I am a moderator and I have pointed you towards the forum welcome regarding our policy on editing posts.

    I would recommend you also read the “Contact the Moderators” section.

    As most of the moderators are volunteers, we ask that if you need moderator help for any reason, you post your request in the forum and tag it with the term “modlook” – someone will come take a look. Do not abuse that tag, or your account will be disabled.

    https://codex.www.ads-software.com/Forum_Welcome#Contacting_the_Moderators

    Thread Starter mkaiit

    (@mkaiit)

    I didnt re add it
    I just read the topic in codex and i added in tags at the end of this thread. Did i do something wrong? If yes plz advice what shall i do.
    Plz if u can delete this topic plz do as its not useful in anyway
    Thanks a lot

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Then I apologise, I must have not removed it (the modlook tag) correctly.

    We don’t delete topics for that reason.

    Thread Starter mkaiit

    (@mkaiit)

    Sir
    I don’t think i follow what do u mean by not removed it correctly

    Can u remove my sites link and my img? I needed the soultion saw i shared them. Plz can u urgently remove them???

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Different logos / header’ is closed to new replies.