Forum Replies Created

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

    (@artiss)

    Dear Stefano Lissa,

    Thank you very much for your prompt reply. I was misunderstanding to use the code as the page I want to put the js script into so I put my js script under “Page content” tab. That’s why no js script appears on both 88 and 118 pages.
    Now, I put the condition not to appear in page content tab and my js script in page head and footer tab. But the js script still show in every page.
    Would it be possible to have some recommendation from you in this case?

    Thank you so much and regards,

    Tab: Page content “Code to be inserted before each page”
    <?php if( !in_array($post->ID,array(93, 247, 899, 865, 180)) ) { ?>
    my js script
    <?php } ?>

    Tab: Page head and footer “Code to be added on HEAD section of every page”
    my js script

    Thread Starter Artiss

    (@artiss)

    Dear Stefano Lissa,

    Thank you so much for the explanation of adding the code again. I do not know about PHP language at all so I do not know how to deal with it. Also, I’m new to WordPress.

    The code works when I add it to “Page content” tab for one post. However, I would like to add the code for 5 posts. I tried to find other solutions already and only got the code below. Although, it’s still not working. The script do not show on the page. Do you mind to help me with this again?

    Thank you so much for your help in advance. I am very much stupid on editing it. Although, I have tried to put many ways from forums together but got some errors or not working on it.

    <?php if( !in_array($post->ID,array(88, 118)) ) { ?>
    my code
    <?php } ?>

    Dear Willzenstein,

    Thank you so much for your prompt reply. I will look into it. May I ask you again if I have more question.

    Really appreciate your help 🙂

    Best,

    Dear willzenstein,

    Thank you for sharing. I’m wondering if I can use the below code for Accesspress Basic? I’m an newbie to WordPress. Your help is highly appreciated!

    Thank you in advance!

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