• Resolved jordan8201

    (@jordan8201)


    I have a database with a few hundred devotions that I would like to start using on my WordPress page. I am hoping not to have to copy and paste each of them into my WordPress page. Is there a way to somehow merge the two? Thank you very much!

Viewing 15 replies - 76 through 90 (of 97 total)
  • Cached files, that’s why i asked you to CTRL + F5 earlier, obviously it didn’t quite refresh enough….

    I’ve fixed some other issues while i’ve got the files…

    Is there anything you want changed or updated before i send it back?…

    Thread Starter jordan8201

    (@jordan8201)

    There are some extra line breaks on the top of the 2nd page, but I can probably fix that. How would you like me to send the screen shot to you?

    Thread Starter jordan8201

    (@jordan8201)

    Ahhh I just figured out the width issue…When I go to the page, I go to https://www.straightpaths.mzbc.com. This has the wider margins.

    Click the Devotions link, it takes me to https://mzbc.com/straightpaths/?page_id=9, which has the thinner margins. If I click home (which is what you were probably looking at), I get the thinner margins and the web site is: https://mzbc.com/straightpaths/

    So https://mzbc.com/straightpaths/ is different from https://www.straightpaths.mzbc.com.

    https://www.t31os.co.uk/Theme5.zip

    Try out the changes as they are and report back any problems or additions you need.

    Thread Starter jordan8201

    (@jordan8201)

    Ok, we have a problem.
    For some reason whatever you did combined all of the data onto one line when I open it up in the wp EDITOR. So i get this error message when I go to the devotions page:

    Parse error: syntax error, unexpected T_IF in /home/mzbcco5/public_html/straightpaths/wp-content/themes/Theme5/devotions.php on line 1

    Grab the files again, i’ve just grabbed that zip above and the files are still intact….

    I’ll zip them again if necessary…

    I’m going to check the WP editor and see if i get the same problem.

    Update: Tested in WordPress theme editor, no problems..

    There’s no T_IF on line 1 by the way, so that error is certainly out of place.

    P.S. i didn’t move it onto one line, that’s partly why i think there was an issue with the files, either at download or upload…

    EDIT: further update

    Took the downloaded files and installed them again locally, and all is still fine.

    I can only guess the files didn’t download correctly or there was an issue on uploading…

    Thread Starter jordan8201

    (@jordan8201)

    i tried again with the same result. Should I do something other than use my ftp program to upload the new files?

    Can you open one of the files (any one will be fine), using this Notepad++, and report if the issue with the text being on one line is still present..

    Try this again, fresh zip..
    https://www.t31os.co.uk/test.zip

    I’ve checked individual files and made sure the encoding matches for all files, UTF-8…

    Other then that i can’t understand the problem.. ??

    Thread Starter jordan8201

    (@jordan8201)

    It looked fine in Notepad++, but it was still on a single line in the WP editor. So I pasted the code from Notepad to the editor, and it worked. So not sure why that happened, but all is well now! I still have the vertical line issue: Screenshots are here:

    https://mzbc.com/straightpaths/page1correct.JPG
    https://mzbc.com/straightpaths/page2incorrect.JPG

    Can you see the faint vertical line on the 2nd?

    I think that line is caused by the 2 elements floated next to each other… but i think we can work round that..

    In style.css, find..

    #search {
    	margin:0px;
    	padding:27px 0 0 0;
    	width:370px;
    	height:49px;
    	background:#000c28;
    	float:left;
    	clear:right;
    }

    Change this.
    background:#000c28;
    for..
    background:transparent;
    and add..
    border:none;

    Then find.

    #header{
    	margin:0px;
    	padding:0px;
    	width:1003px;
    	float:left;
    }

    And add.
    background:#000c28;
    Like so.

    #header{
    	margin:0px;
    	padding:0px;
    	width:1003px;
    	float:left;
    	background:#000c28;
    }

    Does that help at all?

    Thread Starter jordan8201

    (@jordan8201)

    That seems to have solved the problem, well done!
    Okay maybe one last question…When I click archives or categories, I am getting this error message:

    Parse error: syntax error, unexpected ‘}’ in /home/mzbcco5/public_html/straightpaths/wp-content/themes/Theme5/archive.php on line 6

    Line 6 is this:

    <?php }		/* If this is a daily archive */		elseif (is_day()) { ?>

    I don’t believe I have ever edited this file. The page looks great! Thank you so much!

    Ok i can see the error…

    I worked on several files before giving you a link to download it back.

    Update that file to this.
    https://wordpress.pastebin.com/m18d3349e
    It was just a silly error on my part…. misplaced endif;

    Just a friendly reminder to use the bottom textarea to copy the code from the pastebin.

    Thread Starter jordan8201

    (@jordan8201)

    That did it! Thank you very much!

    When I first started trying to get this page going ( a looooooooong time ago), I couldn’t get the sidebar widgets to work, so I had to do some changing of code in the editor (probably big mistake) to get it to work. I have since learned a little more about these, but right now in my wp-admin, nothing is chosen in the widgets section. If I drag something over to the right, it looks like this:

    https://straightpaths.mzbc.com/

    Basically all the images have disappeared. Here is the sidebar.php file which I had previously edited (before I knew about the MiniMeta plugin).

    https://wordpress.pastebin.com/d38de2cbb

    I am sure this is a simple error in the path to the images somewhere probably.

    There’s an additional stylesheet call that should be removed firstly, i don’t think i removed this before giving you a link, because i was unsure of it’s use, but i can see now it shouldn’t be there.

    Links the following file.
    https://straightpaths.mzbc.com/wp-content/themes/renoville/style_.css

    I removed it on the copy i have, but if i remember correctly it’s above this line.
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />

    In regard to the sidebar issue, i hadn’t noticed until you pointed it out, it indeed does the same for me with widgets.

    I’ll make it function like the non-widget sidebar… will post back some code soon enough… ??

Viewing 15 replies - 76 through 90 (of 97 total)
  • The topic ‘Merging from another database’ is closed to new replies.