How can we help?

If you are looking for support for our PokaTheme, this is the place!

Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • in reply to: Issue with schema review #9725
    casino1
    Participant

    Hey Cabhal,

    You can call the wordpress function get_the_excerpt();

    But that will display <p> and </p> in the data structure markup.

    If you want to remove the <p>, do the following:

    // $get_excerpt_text = the_excerpt();
    $get_excerpt_text = get_the_excerpt();

    // Strip the <p> tag by replacing it empty string
    $tags = array(“<p>”, “</p>”);
    $excerpt_content = str_replace($tags, “”, $get_excerpt_text);

    Then just echo in the markup where you want to display the excerpt: <?php echo $excerpt_content ?>

    in reply to: How to change the review link in pokatheme? #4207
    casino1
    Participant

    Hi,

    Have you tried to updated permalinks? Sounds like they need a nudge.

    Go to Settings -> Permalinks -> click save settings (no need to change anything) and the old reviews slug should be updated as well.

    in reply to: AMP iframe issue #3364
    casino1
    Participant

    Hmm, but the html-mark up is added to the amp-template:

    <amp-iframe width=ā€400ā€³ height=ā€225ā€³
    sandbox=ā€allow-scripts allow-same-originā€
    layout=ā€responsiveā€ src=ā€<?php the_field(ā€˜iframe_demo_gameā€™); ?>ā€>
    <amp-img placeholder layout=ā€fillā€
    src=ā€https://ampproject-b5f4c.firebaseapp.com/examples/images/kittens-biting.jpgā€></amp-img>
    </amp-iframe>

    For the iframe_demo_game field, I only add the following: https://caocw.playngonetwork.com/casino/PlayMobile?pid=2&gid=bookofdeadmobile&lang=en_GB&practice=1

    That shouldn’t be tagged as an iframe – or I’m I missing something? šŸ™‚

    in reply to: AMP iframe issue #3345
    casino1
    Participant

    Thanks for the reply.

    Me neither, it’s very confusing. And google mce_src gives 0 results.

    Yes, it’s only the url to the iframe.

    These are the ACF conditions for the iFrame field:

    array(
    ‘key’ => ‘field_5a82e9a68111e’,
    ‘label’ => ‘Iframe Demo Game’,
    ‘name’ => ‘iframe_demo_game’,
    ‘type’ => ‘textarea’,
    ‘instructions’ => ”,
    ‘required’ => 0,
    ‘conditional_logic’ => 0,
    ‘wrapper’ => array(
    ‘width’ => ”,
    ‘class’ => ”,
    ‘id’ => ”,
    ),
    ‘default_value’ => ”,
    ‘placeholder’ => ”,
    ‘maxlength’ => ”,
    ‘rows’ => ”,
    ‘new_lines’ => ”,
    ),

    in reply to: How to change the review link in pokatheme? #2022
    casino1
    Participant
    This reply has been marked as private.
Viewing 5 posts - 1 through 5 (of 5 total)