• Resolved herondino

    (@herondino)


    Congratulations on the excellent plugin.

    I have a issue: when I use the shortcode [fp-predictionform match = “1-5”] on a simple page, everything works perfectly.

    But when I include this shortcode within a page created in the theme builder (DIVI Theme), the images (team flags) do not appear.

    Strangely, they are there when I inspect the source code, but for some reason they are not visible on the screen. Any ideas on what might be going on?

    Thank you!!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author AntoineH

    (@antoineh)

    Can be several things. If space is limited in the column, then the images might be squeezed into 1px flags (the table they’re in, auto-sizes the cells) and those are hard to see.

    Other possible reason can be that the theme introduces some css that hides the images.

    Best way to find out, is to inspect the page via the devtools that all modern browsers have (right click > inspect). You can then select an image and see the style that they have and where it originates from.

    Thread Starter herondino

    (@herondino)

    Thank you very much for the quick response, I adjusted the CSS and the flags now appear.

    Otherwise, if you can be so kind as to guide me: I would like to make some customizations in the display of the codes, you can tell me where I find some functions like “footballpool_user_page_html_after_username”, “footballpool_user_page_html” and “footballpool_matches_page_html”, which are called in the page codes ?

    In fact, I would like to eliminate horizontal scrolling on mobile, but if you tell me where the codes are, I investigate and personalize it myself.

    Thank you very much and congratulations again for the excellent plugin!

    Plugin Author AntoineH

    (@antoineh)

    Hi,

    the mentioned codes like footballpool_user_page_html_after_username are so-called hooks and these do not contain functions, but are in fact places in the plugin’s code where you can hook your own code into (hence the name). You can write your own functions that will alter the behavior and/or data of the plugin at those specific points in the plugin by using these hooks.

    A simple example of the use of the footballpool_user_page_html_after_username hook can be downloaded here. This extension will simply add the text “Who is ranked on position X and has Y points” to the output of the user prediction page (e.g. https://mydomain.com/user/?user=1) after the user name by using some shortcodes.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Images doesn’t show’ is closed to new replies.