Forum Replies Created
-
AuthorPosts
-
May 29, 2015 at 2:33 am in reply to: WPML language switcher on the menu with several different menus ? #451501
Hi!
I added that to the themes functions.php
But as i can see there is no difference, once i get to a page that doesn’t have the main menu as default menu, the flags are gone ?
Do i need something with the settings in WPML or in the Enfold theme settings ?
Thanx!
May 28, 2015 at 7:11 am in reply to: WPML language switcher on the menu with several different menus ? #450950I got this from WPML
Hi Paul,
Thanks for contacting support forum.
WPML’s in-built language switcher has very limited options. By using language switcher options present at WPML > Languages > Language Switcher Options > Language switcher in the WP Menu, you can add language switcher in any one menu. To add language switchers in multiple menus, it is required to add the language switcher programatically.Following is a code which will add language switcher to different menus.
function wpml_add_menu_item( $items, $args ) { $theme_locations = array( 'primary', 'secondary', 'footer-menu', 'sidebar-menu' ); if( !empty( $args->theme_location ) && in_array( $args->theme_location, $theme_locations ) ) { ob_start(); ?> <li class="menu-item ls-menu"><?php echo do_action('icl_language_selector'); ?></li> <?php $items .= ob_get_contents(); ob_end_clean(); } return $items; } add_filter('wp_nav_menu_items', 'wpml_add_menu_item', 10, 2);
It is adding language switcher to the menu based on theme location of menu declared in,
$theme_locations = array( 'primary', 'secondary', 'footer-menu', 'sidebar-menu' );
You can add theme location of menus to which you want to add language switcher. I would suggest you to ask for help to your theme author if you are not clear about the same.
For more information, on wordpress navigation menus, please refer: https://codex.wordpress.org/Navigation_Menus
Hope this helps.
Regards
Ankit G.Should i paste the code in the Functions.php ?
Also how can i determine how to alter the code so it includes all/or specific menus ?
Thanx!
Thanx! Just wanted to know the function, i got it positioned where i want it.
Thanx again!
May 26, 2015 at 9:10 am in reply to: WPML language switcher on the menu with several different menus ? #449896This reply has been marked as private.Thanx!
I pasted it in, but i can’t see a difference ?
I assume the 10px would show a significant difference ?
Ok i forgot i could use a shortcode for the button and just use text/html widget.
Question regarding the custom css
#header .widget { left: 50%; padding-top: 0; position: absolute; top: 0; transform: translate(-50%); }
I figured out how to position it up/down and left/right with % values to top and left.
What does the transform value do and the position ?
Also when adding this how does it affect the mobile site ?
I can’t see the button (which is good) but i just want to make sure it doesn’t scew up anything on the mobile site.
Site is located here:
It’s the green button to the top right that is added.
http://paullindqvist.se/golfbarenallen/- This reply was modified 9 years, 6 months ago by paullindqvist.
Thanx!
Worked nicely to get a widget area to the header, is there a way i can get add button to a widget area like the buttons i can add to a page ?
I would like the same design.
Wow thank you! Worked perfectly!
Really appreciate the help!
Regards
Paul L.I saw the difference in the functions, copied it and it worked great! Thanx!!
Final question, is it possible to add a static text that will work in conjunction with the “foeretag” form label ?
Like “booking from “foeretag”
Regardless, thank you so much for the help!!
This reply has been marked as private.This reply has been marked as private.May 8, 2015 at 9:18 pm in reply to: Auto reply email on forms, the adress is all messed up ? #441782This reply has been marked as private.This reply has been marked as private.Ok got it sorted, it was a corrupt WP installation of some sort used the WP reset plugin and imported the site again and now it works as it should. Thanx!
Also i tried to deactivate all plugins used, but no difference.
Thanx
Oh i then i understand, i tried another field in the form, with no success.
Thanx!
What is the Umlauts ?
Is there any chance Dude can take a look and see why it’s not working ?
Would be great if i could get this working!
Thanx!
Hi Elliot correct i mixed the posts up.
I now tried the code at the bottom of the page you linked to.
add_filter('avf_form_subject','avia_change_mail_subject', 10, 3); function avia_change_mail_subject($subject, $new_post, $form_params) { $subject = urldecode($new_post['företag_'.(avia_form::$form_id - 1)]); return $subject; }
Still get a blank subject on the emails ?
Thanx!
Hi i think i have the label correct.
The field i want to be the subject line from the form is the first “företag”
http://paullindqvist.se/gb/foretagspaket/
Code i pasted into the functions.php
add_action( 'wp_head', 'insert_fb_in_head', 5 ); add_filter('avf_form_subject','avia_change_mail_subject', 10, 3); function avia_change_mail_subject($subject, $new_post, $form_params) { $subject = $form_params['företag']; return $subject; }
Thanx Elliot but i read those and tried them both but still get a empty subject line ?
It would be a lifesaver if we could get this to work!
Thanx
Thanx! Will try that!
April 21, 2015 at 10:41 pm in reply to: Two social icons beside each other on a mobile page ? #432434Thanx!
But they are then displayed after each other, i was hoping to get two smaller icons beside each other on the mobile.
I tried that and it solved it, but got a dark bar under the submenu ?
Thanx! worked like charm!
Hi Elliot!
Thanx, but isn’t that the same as changing the subject line to a “static” one in the forms option, if left blank the subject line will be the default.
What i want to achieve is to have the subject line change depending on what is entered in the form. I.E have the name entered in the form incorporated in the email subject line.
Since the subject line is the same when we get them from the form it’s hard to separate the mails, or connect them to a certain client by just looking at the subject line.
Thanx
Hi Elliot!
Thanx for the reply!
Here’s what i want to achieve:
I have a old website on a domain (http://spelaminigolf.se) we want to use this domain as it’s well known etc. but we want a wordpress site with new primary content.
So i want a simple page (probably one page) where we display the new content at the top and below it we want to embed the old site ” as is” probably create a subdomain and put it there.
Is this the best solution or have i missed something obvious ? :-)
Thanx!
Hi Andy!
Thanx for testing, and get back to me.
I’v not got it fixed on my MBA 13″ on either firefox, chrome or safari ?
Here’s a video showing the issues:
http://quick.as/gLwzs9Q41Kind of strange that i get it with all three browsers, but only on macbook air 13″ ?
Great, thank for the help!!
April 15, 2015 at 6:47 am in reply to: Two social icons beside each other on a mobile page ? #428705Hi !
Yes i got them in the footer, what i want to achieve is to large icons beside each other on the actual page, if possible ?
Thanx!
Regards
Paul L. -
AuthorPosts