vladyem
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to customize custom search form that it serch entire wordok, I understand, I will test it, thank you!
Forum: Fixing WordPress
In reply to: How to customize custom search form that it serch entire wordThank you for your response, but I’m not sure I’m understand well. You propose to type in search bar with quotes? If yes it is not a good solution for me. I should make some configuration or some modification in code.
Forum: Networking WordPress
In reply to: Multisite sub domaine linksThank you very much @prashantvatsh!
Forum: Networking WordPress
In reply to: Multisite sub domaine linksAnd I use wordpress multisite functionality:
“SUBDOMAIN_INSTALL” => FALSEForum: Networking WordPress
In reply to: Multisite sub domaine linksyes it is a links, here is a part of code of links (php file) and js which manages those links (it target .js-header-anchor) :
header.php
a href=”#front-project” class=”js-header-anchor
a href=”#block-why” class=”js-header-anchorjs/main.js
$(‘.js-header-anchor’).on(‘click’, function(e){
target = $(this).attr(‘href’);
if ($(‘.page-template-template-donation-projet’).length ) {}
else if( $(‘.home’).length ){
pos = $(target).offset().top;
$(‘html, body’).animate({scrollTop: pos}, 500);
}else{
window.location.href = window.location.origin + ‘/’ + window.location.href.split(‘/’)[3] + ‘/’ + target;
}
e.preventDefault();
});navigation anchors work with js code, with ‘js-header-anchor’ class
header.php
- <a href=”#front-project” class=”js-header-anchor
- <a href=”#block-why” class=”js-header-anchor
js/main.js
$(‘.js-header-anchor’).on(‘click’, function(e){
target = $(this).attr(‘href’);
if ($(‘.page-template-template-donation-projet’).length ) {}
else if( $(‘.home’).length ){
pos = $(target).offset().top;
$(‘html, body’).animate({scrollTop: pos}, 500);
}else{
window.location.href = window.location.origin + target;
}
e.preventDefault();
});
Forum: Networking WordPress
In reply to: Multisite sub domaine linksHi @prashantvatsh I tried, unfortunately it does not work in my case. But thank you anyway for your time!
Forum: Networking WordPress
In reply to: Multisite sub domaine linksHello @prashantvatsh, thank you for your advise! I will try it and tell you whether it worked or not