jgoldberg2013
Forum Replies Created
-
Also, it is only showing these stats (the same section of the stats) on two of the pages at random and only on the main site, not the 2nd multisite or site 2.
If you refresh the page then the stats show up on the other page and so on. Have no idea what or what hapened as it was all working fine.Forum: Plugins
In reply to: [Multisite Language Switcher] Place flags in navigation bar: Alternative WayStyling the flags – seperating each flag slightly.
[title=WHAT EVER YOUR LANNGUAGE IS] { padding: 0 10px;}
hope that helps.Forum: Plugins
In reply to: [Multisite Language Switcher] Same question – trouble with code inputSorry link is alternative way of placing flags in navigation bar
Forum: Plugins
In reply to: [Multisite Language Switcher] Same question – trouble with code inputForum: Plugins
In reply to: [Multisite Language Switcher] Same question – trouble with code inputAs soon as I use float – the flag images go behind the nav bar.
As mentioned they are there according to dev tools. But in Firefox – the images are perfect – infront of nav bar.Forum: Plugins
In reply to: [Multisite Language Switcher] Same question – trouble with code inputSorry but I do not understand what you are saying. I am pretty new to the coding stuff.
What do think the issue was – as you state that my scenario is quite interesting.
On a another note: Now that I am using margins to move the widget box over my nav bar – for some reason it does not show in IE9 but is fine in FF.
When using float to right the images disapear – they are there in F12 development tool but no image is shown.
When settings are :#header #mslswidget-4 { margin-bottom:-45px; display: inline-block; float: none; }
then the flags show but are behind the nav bar – reied making z-index 9999 but still did not help.
Any advise as all reading ppoints to widget code not being compatible with floats.Forum: Plugins
In reply to: [Multisite Language Switcher] Same question – trouble with code inputOK – I hve actually ditched this process and took a completely different angle. Working with margins.
#header #mslswidget-4 { clear: right; float: right; margin-bottom:-45px; width: 300px;
Although it is not embeded it works for now until we can fugure why your code does not work in my theme.
Forum: Plugins
In reply to: [Multisite Language Switcher] Same question – trouble with code inputHi Dennis, thanks for being so patient with me but I still can not get switcher in the main-nav.
I have done exactly what you have asked.
I have tried it with the switcher widget placed in a widget area
AND with it out of any widget area.
Either way still nothing.
I know the “main”nav is the class as it says so in firebug html.
snapshot of info can be seen at https://postimg.org/image/8fv8f1zp3/
I know zero about php so I am really stuck if you say that your code MUST work and it does not.Forum: Plugins
In reply to: [Multisite Language Switcher] Same question – trouble with code inputI even tried your code in the header.php at the end of the page but still nothing changes.
I have really run out of options and is frustrated as this seems very easy to implemnt but after hours of trying – I am only failing.Forum: Plugins
In reply to: [Multisite Language Switcher] Same question – trouble with code inputI placed your code EXACTLY at the END of the functions.php file
in the theme/includes folder.
AND NOTHING changed. do I need to edit your code in anay way?
Do I remove your widget from the dashboard from all sites on network?
I am really stuck here- I do hope we can sort this out.
These are the last lines on the funcion.php file.} function my_custom_menu_item( $items, $args ) { if ( class_exists( 'MslsOutput' ) && 'header-menu' == $args->theme_location ) { $obj = new MslsOutput; $arr = $obj->get( 2 ); if ( !empty( $arr ) ) { $items .= '<li>' . implode( '</li><li>', $arr ) . '</li>'; } } return $items; } add_filter( 'wp_nav_menu_items', 'my_custom_menu_item', 10, 2 ); add_filter( 'body_class','responsive_add_class' ); ?>
Forum: Plugins
In reply to: [Multisite Language Switcher] Same question – trouble with code inputOK – thought I had a light bulb moment and removed the MLS widget out and – ALL gone now. no flags at all.
Forum: Plugins
In reply to: [Multisite Language Switcher] Same question – trouble with code inputI dumped your code into 2nd functions.php file adsaved it in my child theme directory.
This is what comes back to me when going to URL.
Fatal error: Cannot redeclare responsive_get_options() (previously declared in /homepages/29/d125184200/htdocs/en/wp-content/themes/coinlogistics_child/functions.php:38) in /homepages/29/d125184200/htdocs/en/wp-content/themes/responsive/includes/functions.php on line 43
————————————————————
If I save the edited file in the theme/includes directory then nothing happens.
———————————————————–
I placed the code as so:/** * Set a fallback menu that will show a home link. */ function responsive_fallback_menu() { $args = array( 'depth' => 0, 'sort_column' => 'menu_order, post_title', 'menu_class' => 'menu', 'include' => '', 'exclude' => '', 'echo' => false, 'show_home' => false, 'link_before' => '', 'link_after' => '' ); $pages = wp_page_menu( $args ); $prepend = '<div class="main-nav">'; $append = '</div>'; $output = $prepend.$pages.$append; echo $output; } function my_custom_menu_item( $items, $args ) { if ( class_exists( 'MslsOutput' ) && 'header-menu' == $args->theme_location ) { $obj = new MslsOutput; $arr = $obj->get( 2 ); if ( !empty( $arr ) ) { $items .= '<li>' . implode( '</li><li>', $arr ) . '</li>'; } } return $items; } add_filter( 'wp_nav_menu_items', 'my_custom_menu_item', 10, 2 ); /** * This function removes .menu class from custom menus * in widgets only and fallback's on default widget lists * and assigns new unique class called .menu-widget * * Marko Heijnen Contribution * */ class responsive_widget_menu_class { public function __construct() {
Forum: Plugins
In reply to: [Multisite Language Switcher] Same question – trouble with code inputJan- yes multisite is set-up and the plugin is active and working. That is not the issue – The plugin author has stepped (as above) in to assist kindly so thanks for your advise though.
Forum: Plugins
In reply to: [Multisite Language Switcher] Same question – trouble with code inputHi Dennis – thanks for quick response. Very impressed with plug in and now your support.
I have read the link a number of times now but still not having any luck – I keep getting a parse error on the lines I dumped in.You mention both the functions.php and the header.php
Which one do I place your code into – this is what is confusing.
I have placed your code as above in the 2nd functions.php loacted in theme/includes/…
This is the code but it did nothing to the site. https://help-alliance.de* This feature enables custom-menus support for a theme. * @see https://codex.www.ads-software.com/Function_Reference/register_nav_menus */ register_nav_menus(array( 'top-menu' => __('Top Menu', 'responsive'), 'header-menu' => __('Header Menu', 'responsive'), 'sub-header-menu' => __('Sub-Header Menu', 'responsive'), 'footer-menu' => __('Footer Menu', 'responsive') ) ); function my_custom_menu_item( $items, $args ) { if ( class_exists( 'MslsOutput' ) && 'header-menu' == $args->theme_location ) { $obj = new MslsOutput; $arr = $obj->get( 2 ); if ( !empty( $arr ) ) { $items .= ' <li>' . implode( '</li> <li>', $arr ) . '</li> '; } } return $items; } add_filter( 'wp_nav_menu_items', 'my_custom_menu_item', 10, 2 ); if ( function_exists('get_custom_header')) {</a>
[Please post code & markup between backticks or use the code button. Your posted code has now been permanently damaged by the forum’s parser.]
Forum: Plugins
In reply to: [Multisite Language Switcher] Same question – trouble with code inputalso to add – this is a post that the theme support provides to get a thier serch widget in the main nav area.
Copy header.php from Responsive to Responsive Child Theme and add this in:<div id="search-box"> <?php get_search_form(); ?> </div><!-- end of #search-box -->
I thought I could just replace theirs with the code the language swtcher provided but keep getting parse errors.