• Resolved wenesga

    (@wenesga)


    The formatting of the widget title is not tagged with <span>.

    Examples:

    It’s like this <h3 class = “widget-title”> Top 5 </ h3>

    I wanted it to look like this: <h3 class = “widget-title”> <span> Top 5 </ h3>

    To follow the style of the other Widgets.

    How do I fix this? Can someone please help me?

    Thank you very much in advance.

    • This topic was modified 8 years ago by wenesga.
    • This topic was modified 8 years ago by wenesga.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter wenesga

    (@wenesga)

    <h3 class = “widget-title”> <span> Top 5 </span> </h3>

    Plugin Author dpowney

    (@dpowney)

    Hi wenesga,

    If you’re comfortable with PHP and HTML, you can modify the rating-result-list.php template file. See here https://multiratingpro.com/documentation/template-system.

    There’s also another support topic related to the widget CSS class and HTML structure tracked here https://www.ads-software.com/support/topic/widgets-not-right/#post-8832392

    Thanks,
    Daniel

    • This reply was modified 8 years ago by dpowney.
    Thread Starter wenesga

    (@wenesga)

    Hi dopowney

    I found the code block that does this …

    if ( ! empty( $title ) ) {
    		
                $before_title = apply_filters( 'mr_rating_results_list_before_title', $before_title );
                $after_title = apply_filters( 'mr_rating_results_list_after_title', $after_title );
    
                echo "$before_title" . esc_html( $title ) . "$after_title";
    	}

    Can not find where by this tag <span> … where do I put this tag?

    • This reply was modified 8 years ago by wenesga.
    Plugin Author dpowney

    (@dpowney)

    Just change it to:

    if ( ! empty( $title ) ) {
        echo '<h3 class="widget-title"><span>' . esc_html( $title ) . '</span></h3>';
    }

    Make sure you follow the template system documentation and do not use the WordPress theme editor to modify files (use FTP instead to be safe).

    Thanks,
    Daniel

    • This reply was modified 8 years ago by dpowney.
    Thread Starter wenesga

    (@wenesga)

    I’m very grateful to you for helping me

    Thread Starter wenesga

    (@wenesga)

    The Multi rating plugin is not compatible with Mozilla Firefox … I tested it in Internet Explorer, Chrome, Edge, but in Mozilla Ferefox got this bug, as shown in the image.

    Print of the Multi Rating bug

    • This reply was modified 8 years ago by wenesga.
    • This reply was modified 8 years ago by wenesga.
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘The formatting of the widget title is not tagged with span.’ is closed to new replies.