Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8948447
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T12:59:32+00:00 2026-06-15T12:59:32+00:00

For some reason, when I edit my functions.php, various pages turn white. For exmaple,

  • 0

For some reason, when I edit my functions.php, various pages turn white. For exmaple, with this code:

    <?php
    /* Add a custom field to the field editor (See editor screenshot) */
    add_action("gform_field_standard_settings", "my_standard_settings", 10, 2);
    function my_standard_settings($position, $form_id){
        // Create settings on position 25 (right after Field Label)
        if($position == 25){
?>
            <li class="admin_label_setting field_setting" style="display: list-item; ">
                <label for="field_placeholder">Placeholder Text
                    <!-- Tooltip to help users understand what this field does -->
                    <a href="javascript:void(0);" class="tooltip tooltip_form_field_placeholder" tooltip="&lt;h6&gt;Placeholder&lt;/h6&gt;Enter the placeholder/default text for this field.">(?)</a>
                </label>
                <input type="text" id="field_placeholder" class="fieldwidth-3" size="35" onkeyup="SetFieldProperty('placeholder', this.value);">
            </li>
<?php
        }
    }
    /* Now we execute some javascript technicalitites for the field to load correctly */
    add_action("gform_editor_js", "my_gform_editor_js");
    function my_gform_editor_js(){
?>
        <script>
            //binding to the load field settings event to initialize the checkbox
            $(document).bind("gform_load_field_settings", function(event, field, form){
                $("#field_placeholder").val(field["placeholder"]);
            });
        </script>

<?php
    }
    /* We use jQuery to read the placeholder value and inject it to its field */
    add_action('gform_enqueue_scripts',"my_gform_enqueue_scripts", 10, 2);
    function my_gform_enqueue_scripts($form, $is_ajax=false){
?>
        <script>
            jQuery(function(){
                <?php
                    /* Go through each one of the form fields */
                    foreach($form['fields'] as $i=>$field){
                        /* Check if the field has an assigned placeholder */
                        if(isset($field['placeholder']) && !empty($field['placeholder'])){
                            /* If a placeholder text exists, inject it as a new property to the field using jQuery */
                ?>
                jQuery('#input_<?php echo $form['id']?>_<?php echo $field['id']?>').attr('placeholder','<?php echo $field['placeholder']?>');
                <?php
                        }
                    }
                ?>
            });
        </script>
<?php
    }
?>

Updating pages leaves me at a blank white page (at url: /wp-admin/post.php). Another piece of code I was trying to use, from this tutorial:

http://www.doitwithwp.com/pre-populate-fields-using-gravity-forms/

Causes a blank, white pages at the log in page. I’m running the latest version of WordPress. Any ideas why this would be happening?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T12:59:33+00:00Added an answer on June 15, 2026 at 12:59 pm

    Try removing any whitespace before the start PHP tag. Sometimes this causes a great trouble. Generally make sure it does not echo anything, as this file ONLY contains functions for later use and serves no content.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For some reason, this line of code is returning undefined for $(this).attr(href) $(a).attr(href, javascript:page('
I have this simple ajax code, for some reason it wont load content onto
For some reason, the elements that are supposed to be loaded using this code
For some reason the script below is not working. This is the code I
I'm trying to edit this JQuery code to work with a PHP, but for
edit: Now for some reason each productid is only showing up once instead of
I'm having a bit of a trouble on my edit form. For some reason
I'm using CFMAIL to send out an email. For some reason, when I edit
For some reason this isn't working, am I missing something obvious? RewriteRule ^(.*)infopopup.html$ /acatalog/infopopup.html
for some reason no matter what I do, this is always returning a valid

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.