Forum Replies Created

Viewing 15 replies - 1 through 15 (of 20 total)
  • Thread Starter ajdance

    (@ajdance)

    Thanks Ying,

    I’ve added the code, but unfortunately it’s still displaying Time New Roman.

    Thread Starter ajdance

    (@ajdance)

    Thanks George,

    I am now able to add a single font through the custom field, and this will be displayed on the frontend, however the editor is still displaying Times New Roman (checked in Safari, Edge and Firefox). A step forward, but spacing/layout is very difficult without the correct font.

    I can confirm that EquitySanaAlt.css is being loaded on the frontend.

    Note: I have now purchased GenerateBlocks Pro, hoping this would fix the issue, unfortunately it hasn’t.

    Thread Starter ajdance

    (@ajdance)

    Thanks Ying, I have entered a custom value directly (e.g, Equity Sans Alt Extra light) but it’s clearly not finding the font as it appears Time New Roman (both in the editor and on the dropdown), presumably this is the fallback font.

    I have also this morning setup a completely new site, fresh copy of WordPress (no child theme) and GenerateBlocks is the only installed plugin, but still no joy. I have double checked both functions.php and EquitySansAlt.css, so clearly I’m getting something fundamentally wrong here…

    Any other ideas or thoughts greatly appreciated, Andy

    Thread Starter ajdance

    (@ajdance)

    Hi George,

    I’ve checked Ying’s filter code and all looks correct. I’ve turned on wp_debug mode and the only errors related to the Simple Lightbox plugin (now deactivated).

    I have also deactivated all other plugins, so only GenerateBlocks (version 2.2.1) is activated.

    Thread Starter ajdance

    (@ajdance)

    Thanks George, the EquitySansAlt.css is showing up in the front-end source, but unfortunately I am still not seeing the fonts in the block editor.

    Is this something that requires GenerateBlock Pro?

    Thanks, Andy

    Thread Starter ajdance

    (@ajdance)

    Hi George,

    Yes, the @font-face declarations are in a separate EquitySansAlt.css file, uploaded to the theme root folder, same location as the theme style.css.

    Thanks, Andy

    Thread Starter ajdance

    (@ajdance)

    Hi Ying,

    Many thanks for your updated code.

    Unfortunately, I’m still not seeing the font family. George’s original code for add_action refers to ‘my-custom-fonts’, I wasn’t sure what that needed to be so I simply used ‘EquitySansAlt’, maybe that’s an issue… Also, I’m not seeing any reference to EquitySansAlt.css in the page source.

    Andy

    Thread Starter ajdance

    (@ajdance)

    Hi George, thank you for your detailed reply, much appreciated.

    So far, no luck; here’s what I’ve done:

    The font webkit came with a css, so I’m using that, it only has an @font-face font-family declaration for each style – I don’t know what weight or style they are:

    @font-face {
    font-family: "EquitySansAltThin";
    src: url('/wp-content/themes/camp4champs/assets/fonts/EquitySansAltThin/font.woff2') format('woff2'), url('/wp-content/themes/camp4champs/assets/fonts/EquitySansAltThin/font.woff') format('woff');
    }

    In my functions.php I have:

    add_filter( 'generateblocks_typography_font_family_list', function( $fonts ) {
    $fonts[] = 'EquitySansAltThin';'EquitySansAltThinItalic';'EquitySansAltExtralight';'EquitySansAltExtralightItalic';'EquitySansAltLight';'EquitySansAltLightItalic';'EquitySansAltRegular';'EquitySansAltItalic';'EquitySansAltMedium';'EquitySansAltMediumItalic';'EquitySansAltSemibold';'EquitySansAltSemiboldItalic';'EquitySansAltBold';'EquitySansAltBoldItalic';'EquitySansAltBlack';'EquitySansAltBlackItalic';
    return $fonts;
    } );

    and to enqueue the css (same location as style.css), I’ve added:

    add_action( 'enqueue_block_editor_assets', function() {
    wp_enqueue_style(
    'EquitySansAlt',
    get_stylesheet_directory_uri() . '/EquitySansAlt.css',
    array(),
    '1.0'
    );
    } );
    Thread Starter ajdance

    (@ajdance)

    George, your code resolved the date formatting issue. (I have since found a Generate Support post saying that GenerateBlocks Pro is required to return the correct date format – https://generate.support/topic/formatting-the-date-on-dynamic-field/)

    I’ve not been able to get the additional ACF field to show in dynamic data (even though the filed has been saved with data) but, as you say, typing the field directly did pull the correct data.

    Many thanks for your help, much appreciated, Andy

    Thread Starter ajdance

    (@ajdance)

    Brilliant, that works perfectly, many thanks threadi, Andy

    Thread Starter ajdance

    (@ajdance)

    Hi,

    We’ve now bought your WP eStore plugin – we needed the multiple discount feature (though very disappointingly that only works for one product, so it’s of little use…) – though very frustratingly the WP eStore plugin doesn’t appear to have the smart checkout and icons that I couldn’t make work on the Simple plugin!

    Anyway, I’ll make as resolved since we are now using your paid WP eStore plugin.

    Thanks again, Andy

    Thread Starter ajdance

    (@ajdance)

    Hi Tom,

    Many thanks for your quick response and apologies for not replying sooner. I have very few edits to the child theme.

    Here is the odd thing. I have now moved the WP Show Posts shortcode up to the second section/panel on the front page and it works perfectly. It seems that for whatever reason, it doesn’t like following on from the Event Calendar shortcode, which I have now moved down to the third section/panel, below WP Show Posts.

    I’ll eventually uncover the issue, but I’m convinced it is not an issue with WP Show Posts, so I’ve marked the thread as resolved.

    Thanks again, Andy

    Thread Starter ajdance

    (@ajdance)

    Hi Iviolini,

    Apologies for not getting back to you sooner. You were absolutely right, I just needed to select the relevant screen options and hey presto, Podcast and Podcast Series appeared as menu options.

    Many thanks for your help on this, Andy

    Thread Starter ajdance

    (@ajdance)

    Hi,

    Apologies, just reread your post and noticed you also asked about the theme. The site is currently running a child theme of Twenty Seventeen (2.0), exactly the same theme as on the other site where the menu options are displayed correctly.

    I have activated Twenty Seventeen, but it made no difference. I have also tried deactivating and reactivating the plugin, but again, no difference.

    The only thing left to retry is to reinstall, but I am assuming that if I completely uninstall the plugin I will lose the current podcasts/series?

    Thanks, Andy

    Thread Starter ajdance

    (@ajdance)

    Hi,

    Thanks for the quick reply, much appreciated.

    Just to explain, the Seriously Simple Podcasting plugin has been installed, activated and running for two years or so, I haven’t been involved with the site until now, so I can’t say if the menu options have ever been present.

    We are running Version 5.0.3 of WordPress and Version 1.19.15 of Seriously Simple Podcasting.

    Thanks again, Andy

Viewing 15 replies - 1 through 15 (of 20 total)