• I have this price calculator on my page, it calculates the price for renovating walls on your house. Thing is the prices has changed on the materials, so I need to change the code. BUT! – the index.php, terms.php and unsubscribe.php code i not showing, why is that?

    Please help me!

    Kind regards
    Daniel Kristensen

    The page I need help with: [log in to see the link]

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter bademester

    (@bademester)

    Php

    Blank page

    Thread Starter bademester

    (@bademester)

    No help?

    Thread Starter bademester

    (@bademester)

    Not sure I think the developers on the website used “ninja forms”.

    The message is above the empty box.

    PHP2

    Is it safe to update to a new PHP-version? Think it would help?

    Kind regards.

    Moderator bcworkz

    (@bcworkz)

    The blank index.php is in a theme sub-folder. We’ve no idea what its purpose is. Some people automatically place an empty index.php file in folders to ensure the public cannot get a directory listing of files by simply requesting the folder’s path.

    It can be difficult to discern where certain site content comes from. Starting with the correct template file is one way, but knowing even what the correct template file is can be difficult. This plugin can help with that: https://wordpress.org/plugins/show-current-template/

    Please do not bump your topics in these forums. Not only is it against forum guidelines, it actually works against you because adding replies takes your topic off of the “No Replies” list most forum regulars use to find those still needing help. And more recent replies does not move your topic up in the list like it does in some other forums.

    These forums are almost entirely staffed by volunteers who donate their time to the WP community. Sometimes replies can be slow in coming. A couple days is not unusual. Never getting any reply is not unheard of. If you need more immediate assistance, consider hiring professional help through resources like jobs.wordpress.net. Bumping your topic after a couple hours with “No help?” makes you look needy and makes other volunteers less inclined to help you. Try having a little patience instead 😉

    Thread Starter bademester

    (@bademester)

    Iam Sry, it won’t happen again.

    Thread Starter bademester

    (@bademester)

    Arrow 1 – the red index.php square shows the location of the code… right?

    Arrow 2 – the value i need 2 change.

    Index.php

    • This reply was modified 5 years, 2 months ago by bademester.
    Moderator bcworkz

    (@bcworkz)

    You didn’t know, now you know 🙂

    The values in that dropdown field can come from almost anywhere. But to start somewhere, index.php would be a good start. But not the blank one, there’s another index.php somewhere in the theme that has relevant code. Try the templates folder. Find the code that outputs the dropdown. If the source of the values are not right there, the responsible code would be a clue where to look next.

    Thread Starter bademester

    (@bademester)

    Thx, still I can’t seem to find the code…. there is only two index.php’s, the blank page and this https://imgur.com/a/H2brlZY nothing :/ I have checked every single code-page and all themes – but still no luck!

    More suggestions? Anyway thx for your help.

    Kind regards
    Daniel R.

    Thread Starter bademester

    (@bademester)

    Where it’s located:
    <iframe class=”prisberegner-frame” src=”https://boligenergi.nu/wp-content/themes/brandbyhand/prisberegner/index.php&#8221; frameborder=”0″></iframe>

    View post on imgur.com

    Moderator bcworkz

    (@bcworkz)

    That’s odd. Isn’t that the blank index.php in the iframe? We don’t really know if this is the template in play.

    The other index.php screen image you posted, the one where you identified the HTML you want altered, is that the file’s output or the content of the file itself? If that’s the file content, just directly edit the HTML as desired. If instead it’s output, the next clue lies within that file’s code. Where is this index.php? The theme’s root folder perhaps?

    Thread Starter bademester

    (@bademester)

    Yes it is the blank index.php in the iframe, there’s two themes which both have an index.php, one from the company who made the site “the blank index.php the other main theme GeneratePres has this index.php https://imgur.com/a/eXQ3u0Y

    Non of the pages contains the code i need to change:/

    I have looked through all the code pages on both themes, but nothing. https://imgur.com/a/voMWvX0.

    Not sure if this pic tells anything, Show Current Template: https://imgur.com/a/AsSFyRW

    I have been looking for hours now, i don’t get it?

    • This reply was modified 5 years, 2 months ago by bademester.
    • This reply was modified 5 years, 2 months ago by bademester.
    Moderator bcworkz

    (@bcworkz)

    Ah, a child/parent theme relationship. Templates used can come from either theme. Apparently the base template is brandbyhand/templates/builder-page-template.php. That tells me the page uses a page builder. Page builders can have all sorts of widget-like elements that do special things. It’s possible the calculator constants are managed through a page builder element. Or at least it contains a clue to where the code is coming from.

    If not within the page builder somehow, the source should be in code referenced by the template. The page’s main template can pull in code from nearly anywhere. It can call functions directly. It can include or require template parts that have their own code. It can apply filters and actions that execute arbitrary code hooked in. To zero in on the right code, rely upon what is output before and after the calculator. The responsible code would be what lies between.

    There’s a reasonable chance what lies between template output is the_content();. If that’s the case, the calculator is managed somehow by the page builder. If page content were edited by the default WP editor, it’d be likely the calculator is handled by a shortcode. In which case you then need to search code for the shortcode name being passed to add_shortcode() to learn its callback function name. Then search for that function’s declaration.

    Page builders have alternative ways to do something like shortcodes of which I’m unfamiliar. Like on templates, you’d rely upon what content occurs before and after the calculator to zero in on the responsible page builder element.

    I’m sorry you’re having difficulty. Trying to find the code responsible for something on an unfamiliar site can be very challenging even for experienced experts. Your struggle is not uncommon. One other approach to find something is to use a recursive full text search tool like grep or findstr to find some distinctive string or value within the theme files. It’s almost certainly within brand by hand theme and not its parent. It’s conceivable that the calculator is JavaScript based and not PHP, so search in both file types.

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

The topic ‘Blank php.index’ is closed to new replies.