Support » Plugin: Football Pool » How to change standard pages from this plugin

  • Hi,

    I have a question:

    Where can I change the content of the standard pages from this plugin? For example; I want to change the ‘Mt predictions’ page for a visitor who is not logged in. Now there is one line of text with a link to login. This link leads to the default WP login. I want to change this text (and change the link).



Viewing 1 replies (of 1 total)
  • Plugin Author AntoineH


    Hi Bob,

    The pages in the plugin are standard WordPress Pages where the plugin’s functionality is added below the ‘normal’ page content. If you want to add text to the page you can do so in the Pages admin of WordPress; the pages from the plugin are also listed there.

    But, if you want to alter texts the plugin generates (e.g. the link you mention), then there are several options, all depending on what you want to change. Use one of the following that best fits your needs:

    1. Look up the text in the translation file and change it there (use Poedit to change the text and generate a new .mo file). See the FAQ for details on where to put your customized translation.
    2. Open the corresponding PHP file in the pages directory and check if there is a hook (search for ‘apply_filters‘ or ‘do_action‘) that you can use to extend the functionality. Sometimes the page uses a function from one of the classes in the plugin, those classes may also contain hooks. This requires some PHP knowledge though.
    3. Don’t use the standard page, but make your own with the help of the shortcodes in the plugin. Not all pages can be build with shortcodes, but for the prediction page this is possible with the [fp-predictionform] shortcode.


Viewing 1 replies (of 1 total)
  • The topic ‘How to change standard pages from this plugin’ is closed to new replies.