Thank you. I thought maybe there is a way to copy the theme structure to childtheme and to override without having to enqueue scripts, like with woocommerce..
Thank you. I thought maybe there is a way to copy the theme structure to childtheme and to override without having to enqueue scripts, like with woocommerce..
And second question: How can I fix this in an update safe way for my childtheme?
Ah ok, I misunderstood your answer, now I got it, thank you!
So will this be fixed in the next update?
Dear Rose, thank you.
Will this be fixed in the next update?
I have a childtheme, but switched to parent theme to be sure this bug is not caused by my childtheme.
I dont see any difference between your screenshot and the code I should replace it by.
In line 1459, I’ve got:
productName = $('.product-information .product-name, .product_title').first().text();
modalWindow.eModal('endLoading')
.eModal('setTitle',productName)
.eModal('addImage', productImageSrc)
.eModal('addText', successfullyAdded)
.eModal('addBtn',{
title: contBtn,
href: 'javascript:void(0);',
cssClass: 'btn filled',
hideOnClick: true
})
Can you please give me some more advices?
Many thanks in advance!
Just wanted to say that the spelling mistake is still there in version 2.7.
This is a test post 🙂
Edit: Yes, now it works again! Thank you!
Sorry for the delay between my post and the screenshot, I had an important phone call in between. Hope you can replicate it now. Otherwise I will send you my credentials.
Then I click the Edit button:
http://img5.fotos-hochladen.net/uploads/0202201613whrnvagz5m.jpg
And then there is this page:
http://img5.fotos-hochladen.net/uploads/0202201614xfum86y5se.jpg
Ok, so this post is just to take the screenshot of and to see the edit button.
When I publish a reply, there are two buttons under it: Edit and Reply. The Reply Buttons brings me to the reply window. The Edit button brings me to a page that says “You cannot reply to this topic.”
Its still not working. Clicking the edit button says: “You cannot reply to this topic.
Solved this already a few days ago. Adding the following code to functions.php did the trick:
function custom_remove_styles() {
global $wp_styles;
wp_dequeue_style('font-roboto');
wp_dequeue_style('font-open-sans');
}
add_action( 'wp_enqueue_scripts', 'custom_remove_styles' ,131);
I guess the part to edit is in etheme.js:
// **********************************************************************//
// ! Tabs
// **********************************************************************//
var tabs = $('.tabs');
$('.tabs > p > a').unwrap('p');
var leftTabs = $('.left-bar, .right-bar');
var newTitles;
leftTabs.each(function(){
var currTab = $(this);
//currTab.find('> a.tab-title').each(function(){
newTitles = currTab.find('> a.tab-title').clone().removeClass('tab-title').addClass('tab-title-left');
//});
newTitles.first().addClass('opened');
var tabNewTitles = $('<div class="left-titles"></div>').prependTo(currTab);
tabNewTitles.html(newTitles);
currTab.find('.tab-content').css({
'minHeight' : tabNewTitles.height()
});
});
tabs.each(function(){
var currTab = $(this);
var openNumber = parseInt(currTab.attr('data-active'));
if(currTab.attr('data-active') == 'false') {
} else if(!isNaN(openNumber)) {
openNumber--;
currTab.find('.tab-title:eq('+openNumber+')').addClass('opened').next().show();
} else {
currTab.find('.tab-title').first().addClass('opened').next().show();
}
currTab.find('.tab-title, .tab-title-left').click(function(e){
e.preventDefault();
var tabId = $(this).attr('id');
var time = 250;
if($(this).hasClass('opened')){
if(currTab.hasClass('accordion') || ($(window).width() < 992 && !currTab.hasClass('products-tabs'))){
$(this).removeClass('opened');
$('#content_'+tabId).slideUp(time);
}
}else{
currTab.find('.tab-title, .tab-title-left').each(function(){
var tabId = $(this).attr('id');
$(this).removeClass('opened');
if(currTab.hasClass('accordion') || ($(window).width() < 992 && !currTab.hasClass('products-tabs'))) {
$('#content_'+tabId).slideUp(time);
} else {
$('#content_'+tabId).hide();
}
});
if(currTab.hasClass('accordion') || ($(window).width() < 992 && !currTab.hasClass('products-tabs'))){
$('html, body').animate({
scrollTop: currTab.offset().top - 50
}, 800);
setTimeout(function(){
$('#content_'+tabId).addClass('tab-content').slideDown(time); // Fix it
},1);
} else {
$('#content_'+tabId).show();
}
$(this).addClass('opened');
}
});
});
But I dont know what to edit to turn the Slideup effect off for devices > 992px width.
Any help would be really appreciated.
ok this works. But what I dont like at accordion style is this “slide up” effect when you open a tab. It would like to keep this effect for small devices but turn it of for bigger devices. What would be the best ways to achieve this?
I will try to change the style to accordion and style it with css. Give me an hour. I will let you know if I need further assistance. Thank you.
I wanted to say:
it worked until theme version 1.7.1 but since you have wrapped the tabs in <ul> it doesnt work anymore. You find the wp-admin credentials in private content but please dont post any screenshots that contain my texts or products.
Many thanks in advance.
> The edit post functionality in this support forum doesnt work anymore
I am not talking about accordion, but about DEFAULT style.
My goal is to have the tabs one next to each other (one line for ALL tabs) on desktop/big devices and on small devices the should be one after the other (one line per tab). Now, it works for big devices but on small devices the content comes after ALL tabs, not directly after the tab it belongs to. it worked until theme version 1.7.1 but since you have wrapped the tabs in
Found a solution for this.
As there is no alt_text() function in wordpress, I replaced
<img src="<?php echo $hoverImg['url']; ?>" alt="<?php the_title(); ?>" class="show-image">
with
<img src="<?php echo $hoverImg['url']; ?>" alt="<?php $thumb_id = get_post_thumbnail_id(get_the_ID()); $alt = get_post_meta($thumb_id, '_wp_attachment_image_alt', true);?><?php echo $alt; ?>" class="show-image">
This shows the image alt text as share text instead of the product title.
I dont see its fixed. I turned my childtheme completely off, still have the same problem (please find a screensho in private content). Compared the tabs.php file version 2.5 and 2.3: They are exacetely the same, the ul wrapping is still there and causes the problem.
Thanks Eva, but how is it possible that the other pictures show the Alt Text when shared and only the swap images show the product title? I am sure that there must be a way to output the image alt tag otherwise other plugins wouldnt be able to do so.
Any ideas?
Hello Jack,
please find a screenshot in private content. The red marked texts of the swap/hover images are the Product title but I want them to be the image alt text. Maybe Eva can help too as she understood the problem and asked for the credentials.
Many thanks in advance.
Hey Eva,
many thanks for the nice words, really appreaciate it!
Hm, but is there a way to specify image dimensions via css in %? Or woulnd this be useful for SEO? This issue seams to be an important point for SEO and ranking..
Thanks but your answer has nothing to do with my question. I was not asking for changing the tooltip text but for changing the share text when you share a swap image via the Pinterest share button. It shows the PRODUCT TITLE and I want it to show the IMAGE ALT TEXT.
Hello,
yes of course I have uploaded the images and I am using them as product images. Please delete the screenshot as I dont want my page url to be public. The images are shown on the product pages and product archive. Please find temporary credentials in private content and please let me know what you edit.
Many thanks.
***not “claimed” – I mean “complained” – somehow I am unable to edit my posts; when I click on “edit” it always says “you cannot create new topics”…
Hello,
please find temporary ftp credentials in private content. Please note that you have to make changes in themes/royalchildtheme/woocommerce because I have copied the edited woocommerce files into my childtheme folder.
Many thanks in advance!
Sorry, I wanted to edit my last post but it always says “You cannot reply to this topic.”. My last post was wrong. The provided code still breaks the layout in content-slider.php.
Update: Dont know why but now it works. But its still showing the product title instead of the image alt tag. I’ve made the changes in content-product.php and in content-slider.php. Is there any part of the code that I have missed to edit?
Isnt it possible to help me without giving out my credentials?
I tried to replace <img src="<?php echo $hoverImg['url']; ?>" alt="<?php the_title(); ?>" class="show-image"> on line 90 of content-product-slider with <img src="<?php echo $hoverImg['url']; ?>" alt="<?php alt_text(); ?>" class="show-image"> but this breaks the layout. Any help how to edit the code would be really appreciated.
Many thanks in advance.
Thank you. But for my needs, I need to edit wp-content/themes/royal/woocommerce/content-product-slider.php on line 90 too. But when I insert the provided code, it breaks the layout. Any suggestions?
Many thanks in advance!