MicrostockGroup
Microstock Photography Forum - General => Symbiostock => Symbiostock - Development Area => Topic started by: Kerioak~Christine on April 14, 2013, 04:09
-
I have sort of added a widget to the header (that I think could be very useful for many of us) by editing the parent Symbiostock relevant php file. Does anyone know how I can do this using the child css, I have been trying for a while but have not yet been able to work it out.
-
I forgot to say what it was ::) A translator - prompted by the different countries that are finding me via google
-
I forgot to say what it was ::) A translator - prompted by the different countries that are finding me via google
That sounds useful. I'm not sure you can edit php in the css editor. I think I remember reading that you can edit php pages by adding code to the functions.php page. You might want to check into that.
-
I forgot to say what it was ::) A translator - prompted by the different countries that are finding me via google
Hmm, interesting. But how does this work? When I click on a flag nothing happens...
-
When I click on it it brings up a dropdow box with lots of flags, just
click on onr of those to get relevant translation, works on firefox and android for me
-
I am in Canada, use Firefox, click on the German flag and... nothing happens :(
-
That sounds useful. I'm not sure you can edit php in the css editor. I think I remember reading that you can edit php pages by adding code to the functions.php page. You might want to check into that.
I will have another look at that thanks
Does it work/not work for anyone else? I do not want to spend a lot (more) time working it out if it does not work for most people
-
Word of advice - DO NOT play with functions.php in the child theme if you do not know what you are doing. Everything goes white and your site totally disappears, everything, all gone!
Another word of advice :) - if it does happen just go into the child theme using ftp or via your cpanel and delete the child themes functions.php file, easy to reupload again from the files you have on your computer
-
That sounds useful. I'm not sure you can edit php in the css editor. I think I remember reading that you can edit php pages by adding code to the functions.php page. You might want to check into that.
I will have another look at that thanks
Does it work/not work for anyone else? I do not want to spend a lot (more) time working it out if it does not work for most people
Works for me, Firefox 20.0.1 on Windows 7. Looked at your site in French and Chinese...
-
Works for me, Firefox 20.0.1 on Windows 7. Looked at your site in French and Chinese...
Thank you. Now I know it works for someone else I will show what I have done so far.
Plug in: "Translate this Button" and made my own button as did not like the one they had, I would really like to have the text in the site and add the button with just flags but that is miles beyond me.
In the parent Sybiostock header.php file (which I know I will have to change every time if I cannot find a better way)
~~~~~~~~
symbiostock_above_header_nav( );
?>
</div>
</div>
<?php
//get the search form
include_once('searchform_symbiostock.php');
?>
<?php translate_this_button(); ?> <-------ADDED THIS LINE HERE
</div>
</div>
<div class="row">
<nav role="navigation" class="site-navigation main-navigation">
~~~~~~~~~~~~~~~~~~~~~~
-
It works for me too and I put it also on my page, but it is still to low or to high :)
-
If anyone can get it right and put it in the child theme please post the code, ideally I wanted it just under or above the search box as that is the usual place to look when you want a translation on a site but it took me long enough to get it where it is :)
-
I checked out your site again. Now your translator button works great. I wonder what it was the first time. Maybe a Firefox hickup at my end ? Don't know...
I checked the quality of the German translation: It is not bad. Sure, you still notice it is machine translated but I've seen much worse.
Useful button/function. I want it, too. But I don't want to fool with coding it in every time I update my site. So far I had not much luck with the child theme apart from styles.css. But I am a bloody beginner with wp and php. So that doesn't mean too much.
If there's enough interest maybe Leo could include the button as an option.