How to "define a constant" in the function.php?

  • Author
    Posts
  • #2729531

    martinmupp
    Member

    Hello!
    I’m using the Arcade Basic theme for this homepage: http://www.ronnasen.se
    On the front page there is a button with the text “See more”. I want to change this (to another text, and it will be in Swedish).

    In the header.php there is a comment saying that:
    * You can overwrite the defeault 'See More' text by defining the 'BAVOTASAN_SEE_MORE' * constant in your child theme's function.php file.

    1. There isn’t even a function.php-file, only a functions.php-file, but I guess it’s the same?
    2. There is no BAVOTASAN_SEE_MORE-constant in the functions.php (that line isn’t even mentioned).
    3. So how do I do, can I add the constant above, and how do I write that code (I’m no good at PHP).

    The functions.php-code looks like this:

    [Moderator note: removed code sample since it broke the page]

    Thanks a lot!

    #2729568

    kathrynwp
    Staff

    These forums are for sites hosted on WordPress.com, but you’re running the WordPress software on your own hosting. If you need further help with the self-hosted version of Arcade Basic, feel free to post in its forum at WordPress.org:

    https://wordpress.org/support/theme/arcade-basic

    You’ll need a free WordPress.org account to post – if you don’t already have one, you can register here:

    https://wordpress.org/support/register.php

    Be sure to provide a link to your site when you post so people can help you more easily.

    Note:
    The WordPress.org forums are currently in read-only mode for some software maintenance but should be back soon.

The topic ‘How to "define a constant" in the function.php?’ is closed to new replies.