Tagged: x
-
AuthorPosts
-
August 16, 2016 at 3:55 pm #1134184
jptrotierParticipantHello,
I Have a problem with content dock. I installed the extension and activated. I added this code to my css :.x-content-dock {
background: url(“http://manoirmaplewood.com/wp-content/uploads/2016/08/PUB_flottante_Manoir5.jpg”) center center / contain no-repeat;
width: 600px;
height: 190px;
margin-bottom: 10px;
opacity: 1;
}Then i added this code in /wp-content/plugins/x-content-dock/functions/options.php :
global $sitepress;
if ( function_exists( ‘icl_object_id’ ) && is_callable( array( $sitepress, ‘get_current_language’ ) ) ) {
foreach ( $x_content_dock_entries_include as $ID) {
$post = get_post( icl_object_id( $ID, get_post_type(), false, $sitepress->get_current_language() ) );
$x_content_dock_entries_include[] = $post->ID;}
}
For the widget to be appears everywhere ( WPML problem solution find in your Forum) . Everything works except on the home page of the site ( french home ). The widget case appears but empty ??
Work fine on the english home pageThank you for your help
August 16, 2016 at 3:59 pm #1134186
jptrotierParticipantThis reply has been marked as private.August 17, 2016 at 12:28 am #1134725
RupokMemberHi there,
Thanks for writing in! I can see this empty on English home page as well. Would you clarify what was the purpose of the code you have added to content dock function? Does it work as expected if you take off the code?
August 17, 2016 at 7:27 am #1135096
jptrotierParticipantIt’s related to this post :
https://community.theme.co/forums/topic/content-dock-missing-in-other-language/When I installed content dock initially , the widget was displayed only in French . Can not display in 2 languages at the same time. I found this code to fix be the problem view with WPML over the site.
August 17, 2016 at 10:10 am #1135289
RupokMemberHi there,
It seems there is a solution for that – https://community.theme.co/forums/topic/content-dock-missing-in-other-language/#post-998008
Did you try this?
Thanks!
August 17, 2016 at 10:46 am #1135347
jptrotierParticipantYou send me the same link i gaved you in example 🙂
So now i haved try the first part of the code in the post :\wp-content\plugins\x-content-dock\views\site and edit this file content-dock.php
Then replace this line of code
if ( is_page( $x_content_dock_entries_include ) || is_single( $x_content_dock_entries_include ) ) :
with this new code
if ( function_exists( ‘icl_object_id’ ) && is_callable( array( $sitepress, ‘get_current_language’ ) ) ) {
$post = get_post( icl_object_id( $x_content_dock_entries_include, get_post_type(), false, $sitepress->get_current_language() ) );
$x_content_dock_entries_include = $post->ID;
}
if ( is_page( $x_content_dock_entries_include ) || is_single( $x_content_dock_entries_include ) ) :
NOT WORKING. I just have the content in one language at time.
i haved also try the last code mentioned in the post, work well but the home page have an empty widget.
Thanks for your time
August 17, 2016 at 4:24 pm #1135811
FriechModeratorThis reply has been marked as private.August 17, 2016 at 4:29 pm #1135816
jptrotierParticipantThis reply has been marked as private.August 18, 2016 at 12:17 am #1136281
Paul RModeratorHi,
You can try this third party plugin.
Wordfence Security – Firewall, Malware Scan, and Login Security
Hope that helps
August 22, 2016 at 4:17 pm #1142136
jptrotierParticipantHi, so can you connect to my site to help me ?
If not, can you suggest me an alternatvie to content dock. Not work well with WPML.
thanksAugust 23, 2016 at 4:28 am #1142799
Paul RModeratorHi,
Can you provide us your ftp login.
I would like to check but the login provided above doesn’t seem to work.
Thanks
August 23, 2016 at 6:57 am #1142943
jptrotierParticipantThis reply has been marked as private.August 23, 2016 at 9:13 pm #1144091
LelyModeratorHi There,
It is not working on your french page because of this custom CSS you have added on Cornerstone > Settings Tab > Custom CSS:
.x-content-dock { background: url("http://manoirmaplewood.com/wp-content/uploads/2016/08/PUB_flottante_Manoir1.jpg") no-repeat scroll center center / cover; }This file is missing: http://manoirmaplewood.com/wp-content/uploads/2016/08/PUB_flottante_Manoir1
On other french pages, it is working because of the following custom CSS from your child theme style.css:.x-content-dock { background: url("http://manoirmaplewood.com/wp-content/uploads/2016/08/PUB_flottante_Manoir5.jpg") center center / contain no-repeat; width: 600px; height: 190px; margin-bottom: 10px; opacity: 1; }That image background is available unlike the one on your homepage.
Then to activate on all pages on both language, please update the following code on content-dock.php
if ( is_page( $x_content_dock_entries_include ) || is_single( $x_content_dock_entries_include ) ) :To this:
global $sitepress; if ( function_exists( 'icl_object_id' ) && is_callable( array( $sitepress, 'get_current_language' ) ) ) { foreach ( $x_content_dock_entries_include as $ID) { $post = get_post( icl_object_id( $ID, get_post_type(), false, $sitepress->get_current_language() ) ); $x_content_dock_entries_include[] = $post->ID; } } if ( is_page( $x_content_dock_entries_include ) || is_single( $x_content_dock_entries_include ) || is_home() ) :Hope this helps.
August 24, 2016 at 8:49 am #1144693
jptrotierParticipantThanks Lely,
i feel bad for the custom css in the page.. i completely forgot this. It’s now fix.
But… little problem. When i add the code to it work on all pages.. Ok on the french version.
But in the english version, the widget appear at the very bottom of the pages..
thanksAugust 24, 2016 at 5:37 pm #1145491
RadModeratorHi there,
I can’t seem to access your site on my end. I already disabled my anti malware/anti virus software and still the same. Are you sure that there is no existing malware? Maybe my internet provider or DNS provider also blocks those malware marked websites.
Is there a way you can clone your site on a different domain as dev?
Thanks!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1134184 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
