• Hello,

    I would like the custom box title to be in h2, it would be better for SEO in my website. How can I manage this with respecting the design of the box ?

    thanks for your help

    • This topic was modified 5 years, 2 months ago by Oaz.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Artem Abramovich

    (@artabr)

    Hello! The title of an arbitrary block can be changed through the filter, but I did it wrong. In the near future I will update the plugin and the filter will work as required.

    After the update, I will give an example of how you can change the HTML header

    Thread Starter Oaz

    (@oaz)

    Hello again and thanks for your fast answer ! I do not see what filter you are talking about, but maybe I did not update your plugin.
    just to be sure, i am talking about the title included in boxes like on this page :

    https://www.lefer-traductions.com/references/

    Plugin Author Artem Abramovich

    (@artabr)

    I understood what it was about ?? I’ll have to wait a bit before updating the plugin. There will be an example how to change the title

    Plugin Author Artem Abramovich

    (@artabr)

    Hello again. Updated plugin. The current version is 1.5.6.

    Update the plugin to the latest version.

    To change the headers in custom blocks, in the function.php file of your theme (it is better to use a child theme) or you can use the plugin to insert snippets, for example, Code Snippets add this code

    add_filter( 'ads_custom_box_title_filter_html', 'ads_replace_title', 10, 3 );
    function ads_replace_title( $title_html, $title_text, $title_color ) {
    
    	$title_html = '<h2 class="ads-custom-box-title" ' . $title_color . '>' . $title_text . '</h2>';
    
    	return $title_html;
    }

    Maybe after changing the headers on H2 you will have to fix a little more css

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Title size for custom box’ is closed to new replies.