Forum Replies Created

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

    (@mikymroyahoocom)

    Hey!
    Thanks for the reply. I was thinking yesterday about the same solution.
    I placed this in the header of the theme:

    <script type="text/javascript">
    	function myFunction() {
      	document.getElementById("age-gate-m").value = "01";
    	}
    	</script>

    Doesn’t work.
    I then placed the code in the age-gate-public-display.php file… Doesn’t work.
    I tried adding it in the input-month.php file. Same result.
    Then i tried this code:

    <script type="text/javascript">
    	var textnode = document.createTextNode("01");
      document.getElementById("age-gate-m").appendChild(textnode);
    	</script>

    Obviously, nothing.
    If you can spare 2 minutes to help (pretty sure i am writing the syntax wrong)…
    Thanks a lot ??

    LE. I also tried creating 2 vars, one for the month, one for the text and then tried appending on to the other. Nothing :((((

    • This reply was modified 5 years, 7 months ago by Mihai.
    Mihai

    (@mikymroyahoocom)

    A little add-n, in case someone needs it.
    For opening the link in a new tab/page:

    function my_rfbp_content($content, $link)
    {
        return $content . '<a href="' . $link . '" target=_blank >Read more &raquo;</a>';
    }
    
    add_filter('rfbp_content', 'my_rfbp_content', 10, 2);
    Thread Starter Mihai

    (@mikymroyahoocom)

    Last-minute update!

    If i open a category page, for example this one https://www.trails.ro/events-2/category/diverse/

    The title displays corectly…
    HELP! ??

    Thread Starter Mihai

    (@mikymroyahoocom)

    Hello. sorry for posting that. I thought it could help you and detect a bug… thanks for all the info. have a nice day.

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