Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter robertwinter

    (@robertwinter)

    Aha! I had failed to see, let alone click, the ‘View History’ button next to the Newsletter in question. Once done, I could see the list of sent items and delete the test.

    Thank you for your response!

    Thread Starter robertwinter

    (@robertwinter)

    @max-dayala many thanks for the reply.

    After a bit of experimenting, I worked out it is even easier than having to program the changes in a new theme. It seems you just need to use the slug for the url. For example, I can create an icon for my privacy page by adding:

    function mychildtheme_twenty_twenty_one_social_icons_map( $icons ) {
        $icons['privacy'] = array(
            'privacy',
        );
    
        return $icons;
    }
    add_filter( 'twenty_twenty_one_social_icons_map', 'mychildtheme_twenty_twenty_one_social_icons_map' );
    
    function mychildtheme_twenty_twenty_one_svg_icons_social( $icons ) {
        $icons['privacy'] = '<svg xmlns="https://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-shield-lock-fill" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M8 0c-.69 0-1.843.265-2.928.56-1.11.3-2.229.655-2.887.87a1.54 1.54 0 0 0-1.044 1.262c-.596 4.477.787 7.795 2.465 9.99a11.777 11.777 0 0 0 2.517 2.453c.386.273.744.482 1.048.625.28.132.581.24.829.24s.548-.108.829-.24a7.159 7.159 0 0 0 1.048-.625 11.775 11.775 0 0 0 2.517-2.453c1.678-2.195 3.061-5.513 2.465-9.99a1.541 1.541 0 0 0-1.044-1.263 62.467 62.467 0 0 0-2.887-.87C9.843.266 8.69 0 8 0zm0 5a1.5 1.5 0 0 1 .5 2.915l.385 1.99a.5.5 0 0 1-.491.595h-.788a.5.5 0 0 1-.49-.595l.384-1.99A1.5 1.5 0 0 1 8 5z"/></svg>';
    
        return $icons;
    }
    add_filter( 'twenty_twenty_one_svg_icons_social', 'mychildtheme_twenty_twenty_one_svg_icons_social' );
    • This reply was modified 3 years, 11 months ago by robertwinter.
    Thread Starter robertwinter

    (@robertwinter)

    @max-dayala One follow-up question if I may. Is it possible to assign an icon to a page? For example, everything is at the domain level, e.g. social.winter.ink. But is it possible to set one icon for social.winter.ink/privacy/ and another for social.winter.ink/disclaimer/

    Thread Starter robertwinter

    (@robertwinter)

    @max-dayala Absolute legend! Works perfectly now. ??

Viewing 4 replies - 1 through 4 (of 4 total)