Remove "TEXT" tag from widgets

This topic has 23 replies, 4 voices, and was last updated 5 years, 10 months ago ago by Rose Tyler

  • Avatar: borga_EIGHT
    borga_EIGHT
    Participant
    February 14, 2019 at 18:32

    Paragraph analyses
    Total Count 7
    Response Alert! There are 7 paragraph in your web page – Placeholder found
    Contents
    1 Lun.-Ven. 9-12.30 | 14.30-18
    2 info@soalto.it
    3 Oltre 1500 articoli in stock
    4 Nessun prodotto nella lista dei desideri.
    5 {TEXT}
    6 SOCIETA’ ALIMENTARE TORINO SRL | P.IVA 10766580012 |
    7 Termini & Condizioni

    Please, contact administrator
    for this information.
    22 Answers
    Avatar: borga_EIGHT
    borga_EIGHT
    Participant
    February 14, 2019 at 18:33

    try to insert an image fo results but can’t figure how do that…

    Avatar: John Holden
    John Holden
    Support staff
    February 15, 2019 at 08:04

    Hi,

    Please send:

    – Screenshot of issues
    – Admin info (wp-admin URL, username, password)

    I will check this problem for you.

    Regards,

    Avatar: borga_EIGHT
    borga_EIGHT
    Participant
    February 15, 2019 at 10:40

    here it is

    Please contact administrator
    for this information.
    Avatar: borga_EIGHT
    borga_EIGHT
    Participant
    February 15, 2019 at 10:41

    here is the errors

    Please contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    February 15, 2019 at 12:34

    Hello,

    WP text widget always adds the paragraphs, if you don’t want this then use HTML widget http://prntscr.com/mlg58o Check the page now.

    But in your case, I would suggest to remove 40 h1 tags (h1 tag in every short description of the product). You need to enable Product name in Theme Options http://prntscr.com/mlgi4g and you don’t need it in short description because it causes SEO issue!

    Regards

    Avatar: borga_EIGHT
    borga_EIGHT
    Participant
    February 15, 2019 at 12:39

    ok i’ll try to do this! tnks!
    but i see one error remain
    “Nessun prodotto nella lista dei desideri.”

    which is the text that appear on overlay of the heart icon…

    is the only problem remaining …. can please tell me how to remove it from TEXT content of seo?

    Please contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    February 15, 2019 at 12:56

    Hello,

    That text is from the source files and you can replace p by div only by editing the template files. Anyway if I replace p tag on your page I don’t see alert anymore.
    http://prntscr.com/mlgua3

    Regards

    Avatar: borga_EIGHT
    borga_EIGHT
    Participant
    February 15, 2019 at 13:31

    ok! can you please explain me hw do you have removed The “P” tag?
    is an operatione that i have to do fo ALL pages?

    tnks so much 4 kind support

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    February 15, 2019 at 13:33

    Hello,

    I have edited the page content and replaced the p tag by div tag. Also, I have changed the Text widget to Custom HTML widget in widgets areas.

    Regards

    Avatar: borga_EIGHT
    borga_EIGHT
    Participant
    February 15, 2019 at 14:18

    ok for the widget I understand but… (sorry for my question…) how do you mead by “editing page content”…? any picture to explain me better? tnks!

    Avatar: borga_EIGHT
    borga_EIGHT
    Participant
    February 15, 2019 at 21:39

    Also I noticed that you have put my {TEXT} placeholders oto a tag div and /div
    Instead I need to have this:

    <h1>{H1}</h1>
    <p>{TEXT}</p>
    <h2>{H2}</h2>

    And a clean result on CEO backend… (for clean i mean that the CEO backend see ONLY the placeholders as H1, paragraph and h2) Now , if you check you receive again the alert:

    Paragraph analyses
    Total Count 2
    Response Alert! There are 2 paragraph in your web page – Placeholder found
    Contents
    1 Nessun prodotto nella lista dei desideri.
    2 {TEXT}

    I need to REMOVE the "NESSSUN PRODOTTO NELLA LISTA DEI DESIDERI"
    (wich is the phrase that appear on the popup of the heart in the upper right of the page) From been seeing as paragraph on the template

    Please contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    February 18, 2019 at 10:10

    Hello,

    Do you plan to remove all the paragraphs from the pages?
    If you want to replace p tag for the the “No products in the wishlist” then copy etheme_wishlist_widget function (xstore/framework/woo.php) to child theme functions.php and change the p tag to what you want.

    Regards

    Avatar: borga_EIGHT
    borga_EIGHT
    Participant
    February 18, 2019 at 10:20

    ok firs tnk 4 your fast response. so, if I understand well
    1) download woo.php on my pc
    2) copy the content of woo.php
    3) paste it into functions.php of child theme but before edit

    <p class="empty"><?php esc_html_e( 'No products in the wishlist.', 'xstore' ); ?></p>

    replacing <p and </p> with for example <div> and </div>?

    like this?

    <div class="empty"><?php esc_html_e( 'No products in the wishlist.', 'xstore' ); ?></div>
    Is thi correct?

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    February 18, 2019 at 12:04

    Hello,

    Don’t copy the content of whole the file, copy etheme_wishlist_widget function only! Other steps with replacing the tag are correct.

    Regards

    Avatar: borga_EIGHT
    borga_EIGHT
    Participant
    February 18, 2019 at 12:13

    ok… so now my “functions.php” is like this

    <?php
    add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
    function theme_enqueue_styles() {
        wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css', array('bootstrap'));
        
    
        if ( is_rtl() ) {
        	wp_enqueue_style( 'rtl-style', get_template_directory_uri() . '/rtl.css');
        }
    
        wp_enqueue_style( 'child-style',
            get_stylesheet_directory_uri() . '/style.css',
            array('parent-style', 'bootstrap')
        );
    	
    	
    	remove_filter('widget_text_content', 'wpautop');
    	
    	
    	<div class="empty"><?php esc_html_e( 'No products in the wishlist.', 'xstore' ); ?></div>
    }
    
    

    but seems not workiing…. what iìm doing wrong?
    tnks!

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    February 18, 2019 at 12:21

    Hello,

    Do you have basic PHP skills? By copying the etheme_wishlist_widget function I meant copy the php code of the etheme_wishlist_widget function to your functions.php file https://gyazo.com/b875900ac87dbe8d8846a5d71a844668 and then replace the p by div. What did you do? You copied just the div, sorry, but PHP does not work in this way.

    Regards

    Avatar: borga_EIGHT
    borga_EIGHT
    Participant
    February 18, 2019 at 12:55

    Yes I’m absolutely novice to PHP editiing but tnks to your kind support I’ll try to make this …

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 18, 2019 at 13:33

    Hello,

    Ok.
    Feel free to ask if you have any other questions.

    Regards

    Avatar: borga_EIGHT
    borga_EIGHT
    Participant
    February 19, 2019 at 12:05

    ok. I think the result is ok…. just 4 info could please check if my actual functions.php is correct?

    Just edited this lilne
    <div class="empty"><?php esc_html_e( 'No products in the wishlist.', 'xstore' ); ?></div>
    Also noticed that I’ve lost my “pagination” anc “character” of “no products in wishlist” by removing the tag <p> replacing by <div>

    Is there any chance to set a font /or colout) fot this string?

    p.s. many tnks for this tutorial!

    Please contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    February 19, 2019 at 15:42

    Hello,

    Add the following code to your custom CSS.

    .et-wishlist-widget .wishlist-dropdown > div {
        margin: 0;
        color: #1e1e1e;
        font-weight: bold;
        text-transform: uppercase;
        border-bottom: 1px solid #e6e6e6;
        padding-bottom: 1.23em;
        font-size: 1rem;
        line-height: 1.8;
    }
    .et-wishlist-widget .wishlist-dropdown > div.buttons, 
    .et-wishlist-widget .wishlist-dropdown > div.empty {
        border-bottom: none;
        padding-bottom: 0;
    }

    Regards

    Avatar: borga_EIGHT
    borga_EIGHT
    Participant
    February 20, 2019 at 09:41

    PERFECT! tnks so much for your very great support!

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 20, 2019 at 09:45

    Hello,

    You’re welcome!

    Regards

  • Viewing 23 results - 1 through 23 (of 23 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.