Static block - by noe_sp - on WordPress WooCommerce support

This topic has 28 replies, 4 voices, and was last updated 5 years, 9 months ago ago by Olga Barlow

  • Avatar: noe_sp
    noe_sp
    Participant
    February 10, 2019 at 17:52

    Hello,
    Edited the staticl block from the visual composer, in this case edited the banner below the woocommerce category pages. What I do not have the option of copying the html code in the new version of gutenberg, does not let me pass from the visual compositor to the html view, and I can not copy it to the static block section.

    Another query is that I would like to put it on the category page also below in the product pages,

    thank you,
    a greeting

    Please, contact administrator
    for this information.
    27 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 11, 2019 at 08:38

    Hello,

    1) Please update WPBakery page builder plugin to latest version – https://www.8theme.com/documentation/xstore/plugins/plugins-update/ and disable Gutenberg http://prntscr.com/mjf5v5
    https://youtu.be/1Nu49dskD1Q
    2) Appearance > Widgets > After the products area or http://prntscr.com/mjf6mg

    Regards

    Avatar: noe_sp
    noe_sp
    Participant
    February 14, 2019 at 17:50

    Hello,

    Thank you,

    I have been able to perfectly copy the code with your instructions.

    Regarding my second query, I mean to put the code below the product page, not on the category page, because for this I already use the static block, I send you an example in the pages that I want to be placed, in all product pages,

    https://www.ecomooving.com/es/producto/thule-chariot-sport/

    Thank you !

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    February 14, 2019 at 17:54

    Hello,

    You can use Additional custom block in product settings http://prntscr.com/ml4ssm to show the same static block for every product. This block will be displayed below the product tabs.

    Regards

    Avatar: noe_sp
    noe_sp
    Participant
    February 16, 2019 at 15:39

    Thank you!

    One thing, this is above related products, may it be below, in the end?

    Thank you

    Regards

    Avatar: Eva
    Eva Kemp
    Support staff
    February 16, 2019 at 15:59

    Hello,
    Give me please more information about what you mean or give me screenshots to understand what you mean.

    Avatar: noe_sp
    noe_sp
    Participant
    February 17, 2019 at 11:34

    https://prnt.sc/mm78lt

    Hello,

    change the order, I would like the static block to be at the end of the page,

    Thank you

    Regards

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 18, 2019 at 09:14

    Hello,

    Copy content-single-product.php file (wp-content/themes/xstore/woocommerce) into your child-theme/woocommerce folder and edit content there https://prnt.sc/mmjwkl

    Also, there is another solution. If you want to have the same block for all Single product pages, you may set custom pre-footer for Shop page via [8theme] Layout options (it will be inherited by all Single product pages) and hide this block on the Shop using custom css code (Theme Options > Custom css > Global custom css):

    .post-type-archive-product .prefooter {
        display: none;
    }

    Regards

    Avatar: noe_sp
    noe_sp
    Participant
    February 18, 2019 at 09:47

    Thank you very much for your help,

    To create a prefooter for all the pages of the store would be perfect, Could you indicate where I could create it?

    grateful,

    regards

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 18, 2019 at 10:07

    Your static block will be used as prefooter. To set it for all pages – http://prntscr.com/mmko07 or for Shop page http://prntscr.com/mmknoz

    Regards

    Avatar: noe_sp
    noe_sp
    Participant
    March 8, 2019 at 00:37

    Hello,

    Now it appears very well,

    The only thing that I have put the static bloc in prefooter in widgets and in the pages of product categories I see the banner duplicated. On the product page it appears perfect and on the pages.

    thank you

    a greeting

    Avatar: noe_sp
    noe_sp
    Participant
    March 11, 2019 at 06:16

    Hello?

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    March 11, 2019 at 08:09

    Hello,

    Sorry for the delay.
    Try to remove your static block from this area – http://prntscr.com/mw62zf
    https://youtu.be/4SfPPuwPCVI
    Feel free to ask if you have any other questions.

    Regards

    Avatar: noe_sp
    noe_sp
    Participant
    March 12, 2019 at 10:31

    Hello,

    thank you, it does not appear duplicated anymore.

    https://ibb.co/TBPPWgz
    https://ibb.co/THKnhbK
    https://ibb.co/3mcJwQn

    The problem now is that when I translate, I do it from a page and then copy and paste the code to the static part of the page. In the main language is fine, but the problem comes when I do the translation, change image and link and when copying the code to the static pad this changes the links for the version of the main language (Spanish) and not the language that I put that would be the French in the example.

    Thank you

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    March 12, 2019 at 15:14

    Hello,

    1) Why do you use pages to create content and don’t use static blocks from the start? You just need to enable the WPBakery for the static blocks http://prntscr.com/mwub83
    2) You can create static block and translation for the static block http://prntscr.com/mwueft
    3) When you create and update translation make sure that you don’t overwrite your translation by the default one http://prntscr.com/mwue1s and http://prntscr.com/mwud19

    Also, if you have the new questions that are not related to the current issue, please, create a new topic. Don’t use 1 topic for all the problems you faced to avoid confusion.

    Regards

    Avatar: noe_sp
    noe_sp
    Participant
    March 12, 2019 at 15:33

    Thank you,

    I try it and I tell you,

    the program does not let me create a new ticket, I do not know why,

    Thank you.

    Avatar: noe_sp
    noe_sp
    Participant
    March 12, 2019 at 15:47

    Hello again,

    It doesn’t appear to edit the static bloc with visual composer,

    I think the page options are fine, I understand that the page must be retracted independently and not click on the overwrite button,

    Thank you,

    a greeting.

    https://ibb.co/ZK6Sckm
    https://ibb.co/pLWf1S5

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    March 12, 2019 at 19:03

    Hello,

    What is your WP role: editor or admin? WPBakery has known issue with WP roles and does not allow to use WPBakery for the custom posts types if you logged in as the editor or store manager etc, only for admin. So, try to login as admin and check if you have the editor buttons.

    I have passed the problem with topic creation to our developers. They will check and I’ll inform you about the answer.

    Regards

    Avatar: noe_sp
    noe_sp
    Participant
    March 12, 2019 at 22:19

    Hello,

    Before I used a support account but now I have logged in with administrator account and I do not see the buttons either,

    I thank you for informing me, since my client wants to open the store and I do not have what I need,

    I would also ask you another question, please, since the buttons are not aligned and I need them to be aligned, paste a code but it only works for some woocommerce page, but not for home and others.

    https://ibb.co/SXHnhwr

    thank you

    //Limitar el número de caracteres en la página de tienda en WooCommerce
    function short_woocommerce_product_titles_chars( $title, $id ) {
    if ( ( is_product_category() ) && get_post_type( $id ) === ‘product’ ) {
    if ( strlen( $title ) >= 25) { // Si el título del producto es mayor a 25 caracteres
    return substr( $title, 0, 20 ); // Acorta el título a 20 caracteres
    } else {
    return $title; // Pero si el título no es más largo de 30, pone el título completo
    }
    } else {
    return $title;
    }
    }
    add_filter( ‘the_title’, ‘short_woocommerce_product_titles_chars’, 10, 2 );

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    March 13, 2019 at 13:08

    Hello,

    Theme Options > Shop > Products style > Product title chars limit.

    Regards

    Avatar: noe_sp
    noe_sp
    Participant
    March 13, 2019 at 21:53

    Thank you,

    This option has gone perfectly,

    Regards

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    March 14, 2019 at 07:55

    You’re welcome!
    Have a nice day.

    Regards

    Avatar: noe_sp
    noe_sp
    Participant
    March 14, 2019 at 14:20

    Hello,

    The home page have the same problem with the links,

    I put the link but in don’t fucntion correctly,

    My client wants to open the store now and it does not work well ..

    Thank you

    https://imgur.com/PCTotkv
    https://imgur.com/4vfDoq7

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    March 14, 2019 at 15:15

    Hello,

    What is it http://prntscr.com/mxtxch ? You should not use a tag in the attribute, you just need to add link to url attribute http://prntscr.com/mxty0j
    Don’t use Visual editor if you edit shortcode params, only HTML tab.

    Regards

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    March 14, 2019 at 15:56

    P.S. Could you, provide us access to your account on our site to check the problem with the creation of the new topic because we can’t reproduce the issue from another account?

    Regards

    Avatar: noe_sp
    noe_sp
    Participant
    March 19, 2019 at 15:39

    Hello,

    I continue with the same problem, the static copy copied the link in html and when updating the page it is created automatically this id that takes me to the page in spanish,

    please, my client wants to open the store but can not with these errors, I thank you very much for your help,

    now I will look at the support login and send it to you as you tell me,

    Thank you

    a greeting

    https://imgur.com/pnq3wiP
    https://imgur.com/4fMVGgQ

    Avatar: noe_sp
    noe_sp
    Participant
    March 19, 2019 at 15:40

    https://www.8theme.com

    Please contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    March 19, 2019 at 16:02

    Hello,

    I did not face any problem while creating new topic from your account https://www.8theme.com/topic/links-issue/ So, if you have the new questions submit new topic, please!

    Regards

  • Viewing 28 results - 1 through 28 (of 28 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.