ekajuan
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Virtue] Video Youtube Width Goes Beyond LimitYap, using youtube shortcodes.
I had to add this css to make it works.
.embed-youtube{
overflow:hidden !important;
padding-bottom:56.25% !important;
position:relative !important;
height:0 !important;
}
.embed-youtube iframe {
left:0 !important;
top:0 !important;
height:100% !important;
width:100% !important;
position:absolute !important;
}Forum: Fixing WordPress
In reply to: Changing table name and make wordpress still workingWait a minute, I have to include the table prefix in order to make your suggested codes working.
$wpdb->posts = 'wp_my_posts';
well, in my case I change wp_my_posts according to my table’s name.
Code No.1 doesn’t work though.
But code No.2 and 3, they work!!To be honest I can’t get my head around code no.1 and no.2, even though I can see the big picture.
No.3 certainly the simplest way to do it.
Thank you, Birgire…
Forum: Fixing WordPress
In reply to: Changing table name and make wordpress still workingWell, I have tested the three of them, by putting them in functions.php and then change ‘my_posts’ according to my table name without the prefix.
But they all still don’t work.The WP still can’t read the name altered table.
Forum: Fixing WordPress
In reply to: Changing table name and make wordpress still workingHai Birgire,
It’s not the prefix that I want to change.
The reason why I want to change the name of the table is due to a project that requires a relevant table name.
It has something to do with woocommerce. It stores products in wp_post.
I want it to be stored in let’s say…in wp_products.
I’m thinking about creating a new table with that kind of name and the same structure or just change the name of the existing wp_post.Do I have to really change the table name? Yes.
Forum: Plugins
In reply to: [Posts By Tag] It seems doesn't work in multisiteNever mind… I found the problem, my browser uses an ad blocker. Somehow the plugin is considered as an ad, so it doesn’t show up.
It works. Thank you.
Forum: Themes and Templates
In reply to: [Virtue] Cannot search properlyO, it turns out the problem lies on the old woocommerce version. Now it’s updated, and the search result for products works perfectly
Thank You.
Forum: Themes and Templates
In reply to: [Virtue] Logo doesn't center in smaller screenI use both the logo and retina logo.
The Link
https://feju-fashion.comForum: Themes and Templates
In reply to: [Virtue] Logo doesn't center in smaller screenI found out that the width of the logo has to be set up. I don’t know exactly how much it should be. I just take random number and see which works.
In order to work with chrome, it only needs a configuration for the max-width:992 but in order to work also with firefox it takes both max-width:992 & max-width:767.
Since I’m not a developer I don’t know whether this css a cross browser one.
@media (max-width:992px) {
header #thelogo {
margin-left: auto;
margin-right: auto;
width:100px !important;
}
.belowlogo-text {
text-align: center;
padding-left: 0 !important;
}@media (max-width:767px) {
header #thelogo {
margin-left: auto;
margin-right: auto;
width:100px !important;
}
.belowlogo-text {
text-align: center;
padding-left: 0 !important;
}Forum: Themes and Templates
In reply to: [Virtue] "Your Cart" Translation ProblemBased on your hint I found out that there are two files affecting “Your Cart”, they are:
1. templates/header.php
2. lib/custom-woocommerce.phpThe code that I found on both place:
<?php _e(‘Your Cart’, ‘virtue’);?> – <?php echo $woocommerce->cart->get_cart_total(); ?>So my child-theme translation actually takes effect on the header.php, which is the first phase.
Your suggestion/modification takes effect on the second phase.My next big question, why having this piece of code in two seperate files, which fires up in sequence?
Forum: Themes and Templates
In reply to: [Virtue] "Your Cart" Translation ProblemMm…It still behave the same.
Maybe you can please take a look at my shop: https://feju-fashion.com
and see what I mean.Forum: Themes and Templates
In reply to: [Virtue] Missing Widget ID on SidebarYes, if I switch theme, the ID widget works perfectly.
Forum: Themes and Templates
In reply to: [Virtue] Missing Widget ID on SidebarAdd new widget -> no ID.
If the problem only missing files or corrupted files due transferring. I’m sure by installing a new one will solve the problem. But it doensn’t.
By the way if a widget can have an ID at shop, which code actually generates it?
Forum: Plugins
In reply to: [WooCommerce Product Image Flipper] Not working–
Forum: Plugins
In reply to: [WooCommerce Product Image Flipper] Not workingIf so, then…you have another problem. Your theme coding has somehow blocks the second image to shows up at front page.
Do you have the theme files that I can take a look / download. Maybe I can tweak it and give you the answer. But I’m not promising anything since my coding knowledge is also limited.
If you choose to do it on your own, here are some clues.
In my case I found this piece of code has been comment out by the designer of the theme I used. Somehow this piece of code is the one responsible to spit out the second image. So I remove the comment.
//do_action( ‘woocommerce_before_shop_loop_item_title’ );
I found the above code in my theme folder in woocommerce/content-product.php
Since WooCommerce theme designer usually override the plugin by adding the same file into their theme, it is possibly that yours is also there.
You may find the orignal file (content-product.php) in wp-content/plugins/woocommerce/templates.
Compare it with yours, whether that piece of code is there in your theme.
Please make a copy of your file or use child theme before you make any change.
Due to a different theme design between yours and mine, there is a possibility that your problem can be similar or totally different with mine.