Forum Replies Created

Viewing 13 replies - 196 through 208 (of 208 total)
  • Thread Starter figure2

    (@figure2)

    @marventus: Before I test your solution I need some info. Basically what I need is the default header with the addition of one line of text after the description. If I read your solution with my limited PHP knowledge, it looks like it replaces the entire header with one line of text which does not solve my problem.

    Can I insert this code inside the hgroup, leaving all the content which is there now intact with the addition of my line of text only on the home page?

    Here is what I am looking to do (Before and after shots): https://www.markhannondesign.com/clientJobs/homePage.jpg

    Thread Starter figure2

    (@figure2)

    Thanks Denys.

    Mark

    For anyone whose dashboard completely disappeared, this fix comes from one of my linkedin groups: In the wp-config file change the memory limit to ‘WP_MEMORY_LIMIT’, ’64M’.

    The person who posted this reported his dashboard came back after the change.

    Mark

    Just switched to All In One SEO Pack. Solved all my problems.

    I am also getting the error where my dashboard disappears when the Yoast SEO plugin is installed. The problem began when the most recent update was installed.

    Thread Starter figure2

    (@figure2)

    After some more, in-depth searching I found it in the wp-includes folder. The file is “comment-template.php.”

    I wanted to change the prompt “Leave a comment” to something more friendly.

    Mark

    Thread Starter figure2

    (@figure2)

    stvwlf,

    Putting the name of the form back in solved the problem. Thanks for your help.

    Thread Starter figure2

    (@figure2)

    Sorry about that. I was rushing and wasn’t paying attention. I’ll take care of it when I get home tonight.

    Thread Starter figure2

    (@figure2)

    Sorry for the delay in responding. I am working a lot of hours during the week and have a limited window of time to work on the gallery site.

    I had originally removed the “changeValue()” call when I tried my unsuccessful jquery solution. Clearly, I forgot to put them back in later. Thanks for pointing that out.

    Unfortunately, the javascript still isn’t working but at least we eliminated one possible cause.

    Thread Starter figure2

    (@figure2)

    I have the site up on a test server. The membership page with the non-working javascript is here, compared to the original page in which the very same form and very same javascript don’t work.

    Again any help/advice getting the javascript working is much appreciated.

    Thread Starter figure2

    (@figure2)

    stvwlf, unfortunately, even with the updated path the javascript still isn’t working. I may try to put this up on a temporary server to let you and anyone else willing to look at it see what is going on.

    Thread Starter figure2

    (@figure2)

    Thanks stvwlf for that info. Being relatively new to wordpress, I did not know the path WP needed to find the file. I will definitely try this and let you know if it works. I am assuming that the same path is true to link to images an other resources.

    I apologize I can’t show you the current site in development as it is currently being developed locally in MAMP.

    One other option I was wondering about was jquery. As a non-programmer, my skills in jquery are shaky at best. As an example I can show the contents of “clg_Membership.js” followed by my unsuccessful attempt to convert it to jquery. If anyone can offer a way to fix my code I would appreciate it:

    //Current contents of clg_Membership.js which changes the value of the "amount"
    //text input field in the paypal form based on the selected index of
    //the pulldown menu.
    
    function changeValue(){
    var price=0;
     if (document.clg_memberForm.os0.selectedIndex == 0){
    	price = 10;
     	document.clg_memberForm.amount.value = price.toFixed(2);
     }else if (document.clg_memberForm.os0.selectedIndex == 1){
    	price = 20;
     	document.clg_memberForm.amount.value = price.toFixed(2);
     }else if (document.clg_memberForm.os0.selectedIndex == 2){
    	price = 30;
     	document.clg_memberForm.amount.value = price.toFixed(2);
     }else if (document.clg_memberForm.os0.selectedIndex == 3){
    	price = 35;
     	document.clg_memberForm.amount.value = price.toFixed(2);
     }else if (document.clg_memberForm.os0.selectedIndex == 4){
    	price = 50;
     	document.clg_memberForm.amount.value = price.toFixed(2);
     }else if (document.clg_memberForm.os0.selectedIndex == 5){
    	price = 75;
     	document.clg_memberForm.amount.value = price.toFixed(2);
     }else if (document.clg_memberForm.os0.selectedIndex == 6){
    	price = 100;
     	document.clg_memberForm.amount.value = price.toFixed(2);
     }else if (document.clg_memberForm.os0.selectedIndex == 7){
    	price = 200;
     	document.clg_memberForm.amount.value = price.toFixed(2);
     }else if (document.clg_memberForm.os0.selectedIndex == 8){
    	price = 500;
     	document.clg_memberForm.amount.value = price.toFixed(2);
     }else if (document.clg_memberForm.os0.selectedIndex == 9){
    	price = 60;
     	document.clg_memberForm.amount.value = price.toFixed(2);
     }else if (document.clg_memberForm.os0.selectedIndex == 10){
    	price = 150;
     	document.clg_memberForm.amount.value = price.toFixed(2);
     }else if (document.clg_memberForm.os0.selectedIndex == 11){
    	price = 350;
     	document.clg_memberForm.amount.value = price.toFixed(2);
     }else if (document.clg_memberForm.os0.selectedIndex == 12){
    	price = 750;
     	document.clg_memberForm.amount.value = price.toFixed(2);
     }
    }
    //My unsuccessful attempt to convert this code to jquery
    
    $(document).ready(function() {
    switch ($('#on0 :selected').index()) { //on0 is the id of the pulldown menu
    case $(this).index() == 0:
    $("#amount").val("10.00");
    break;
    
    case $(this).index() == 1:
    $("#amount").val("20.00");
    break;
    
    case $(this).index() == 2:
    $("#amount").val("30.00");
    break;
    
    case $(this).index() == 3:
    $("#amount").val("35.00");
    break;
    
    case $(this).index() == 4:
    $("#amount").val("50.00");
    break;
    
    case $(this).index() == 5:
    $("#amount").val("75.00");
    break;
    
    case $(this).index() == 6:
    $("#amount").val("100.00");
    break;
    
    case $(this).index() == 7:
    $("#amount").val("100.00");
    break;
    
    case $(this).index() == 8:
    $("#amount").val("100.00");
    break;
    
    case $(this).index() == 9:
    $("#amount").val("500.00");
    break;
    
    case $(this).index() == 9:
    $("#amount").val("60.00");
    break;
    
    case $(this).index() == 10:
    $("#amount").val("150.00");
    break;
    
    case $(this).index() == 11:
    $("#amount").val("350.00");
    break;
    
    case $(this).index() == 12:
    $("#amount").val("750.00");
    break;
    }
    }
    Thread Starter figure2

    (@figure2)

    Thanks stvwlf,

    Actually the form’s functionality is fine. It’s the javascript the form calls which isn’t working. Will this plug-in make the javascript work?

    If so, where does the script tag referencing the .js file go – in the header or in the custom field with the form?

Viewing 13 replies - 196 through 208 (of 208 total)