Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1346564

    Hello
    Participant

    Hi,
    To clarify for:

    8/ When uploading each file in the same folder on the fresh child theme, how many files are there in each folder?

    I do not understand the question, but you can download a fresh copy and take a look, than you can add the files depending on the changes you are aiming for.

    I was instructed to “From your backup child theme, upload each file on the same folder on your fresh child theme.”

    So, delete the files in the new child theme folders and add the backup files?

    Then do I add each file individually from the backup folder (if that is how they are organised) or can I select all the files in the folder and upload them together then check?

    Or do I check them one after the other if not uploaded in a batch?

    Thank you.

    #1346929

    Friech
    Moderator

    Hi There,

    I did read through this thread thoroughly, and do investigate your site, how you do things. So lets clarify this because its getting confusing.

    Actually if the new and old child theme of yours has the same directories/folder, you can do a batch uploads. You can even restore your old child theme. We just ask you to backup the child theme, because you need to activate the parent X|Theme, that is to check if the [ < ] character that is on top-left of your site is coming from one of your child theme files.

    To clarify this question of yours:

    When uploading each file in the same folder on the fresh child theme, how many files are there in each folder?

    We can not really answer that, its you who knows how many files you modified from the parent theme. You see when you upload a new child theme the folders are empty right? no files? That is because the child theme is for you to place a files that you modified from the parent x|theme and we do not know how many files you actually modified/created. Hope this make sense.

    To further this, I did check this directory:

    /public_html/wp-content/themes/x-child/framework/views/icon

    Did you really edit/modified all this files?


    screenshot

    Or are you just in impression that you need to copy all this files from the parent x|theme?

    You see this are the files that we need to check if where is that [ < ] character coming from. If you still remember what files you modified on that directory that would be great, because we just need to examine those files and delete the others that you did not modified.

    Hope this shed some lights.

    P.S. The sign up form popup show up on my end. http://image.prntscr.com/image/4cb1e190f8934b609b8398782b26b231.png

    And please deactivate your caching plugin in the meantime just to make sure that your edits/changes takes effect immediately.

    Thanks.

    #1347668

    Hello
    Participant
    This reply has been marked as private.
    #1348238

    Friech
    Moderator

    Hi There,

    Would the folders/directories in the new child theme be exactly the same as in the backed up copy?

    I did not see your backup child theme so I can not answer that. But this are the only files and folders when you install a clean child theme.

    framework (folder)
     - views
         - ethos (empty)
         - global (empty)
         - icon (empty)
         - integrity (empty)
         - renew (empty)
    functions.php
    screenshot.png
    style.css

    You compare that to your backup if they have the same directory.

    I don’t remember adding/deleting any folders/directories in the current child theme but would any changes have been automatically made when adding files to the child theme?

    No, nothing is automatic. In your current child theme I see a folder named woocommerce I’m sure that was added by a user manually.

    But aren’t all those files in the child theme necessary?

    If you did a modification on those files because you need to, then YES. If not then NO.

    How do I tell if I modified them?

    You open the same file from your parent x|theme and on the same file on the child theme, then you compare them.
    You can use this site to compare a code. https://www.diffchecker.com/

    Is it simply by them being in the child theme?

    Not because a file is in the child theme that means you modified it. Like on this directory /public_html/wp-content/themes/x-child/framework/views/icon I doubt that you modified all those files in there. I think some of those you just copied from the parent x|theme but did not really modified.

    Actually, I think I just copied all (or as much of the parent files) there for safety sake as I didn’t want to modify them in the parent theme. So I don’t really know which have been modified or not.

    In that case, you need to compare the files from the parent x|theme and from the child theme. If they have the same content/codes, delete the one on the child theme. If they are different that means you modified the file and you need to keep it on the child theme.


    So is your answer to upload one at at time to check?

    Yes its a check. Its a kind of testing to see which files on your child theme is causing the [ < ] character on top of your page.

    Again, sorry for labouring the point, but how do I tell if they have been modified and need to be deleted?

    Compare it to the original file from the parent theme. If they are modified keep the file on the child theme, if not delete it.

    So should I delete the folder, s3.amazonaws.com so to avoid any conflicts? I think for safety sake and cleaness of the site I will delete if possible.

    Yup, keeping the site clean is always a good practice. If you don’t need it delete it. Or keep a backup of it on your computer, you might needed it on the future.

    Also in the same vein, should I delete the code below for the current pop up in my child theme’s functions.php AND in the Headers and Footers plug in?

    Like I said above, delete it if you do not need it. Just make sure you don’t really need the code that you’ll be deleting.

    Finally, would switching to the parent theme mean the site will be down? Or just with no modifications? But then how would it look and function?

    The site won’t be down, and yes it will remove all the modifications. It will function just the same but no modifications, and sometimes it will reset your widgets and menu if those has something to do with modifications. I suggest do not switch to parent theme for now. Just continue working on your child theme.

    Hope this helps, Cheers!

    #1358007

    Hello
    Participant

    Hi,

    1/ What happens if the [ < ] character on top of my home page is in a modified file? By this I mean how do I find that character and delete it without damaging the code?

    2/ In relation to the site being down and working on the child theme, by backing up the child theme and then uploading files one at a time, by definition does that not mean the child theme won’t function as it has no files in it?

    Then surely the site will be down?

    3/ Also, I just need to check the files in the Icon folder as that is my child theme right?

    What about the other folders? Do I just upload/copy the files from my backup copy of my child theme if there are any?

    framework (folder)
    – views
    – ethos (empty)
    – global (empty)
    – icon (empty)
    – integrity (empty)
    – renew (empty)
    functions.php
    screenshot.png
    style.css

    Thank you.

    #1358296

    Rue Nel
    Moderator

    Hello There,

    Thanks for updating in!

    #1] Please carefully check your templates in the child theme’s views folder. The error could from unnecessary < character in the starting code <?php or an extra character from a closing tag.

    #2] The child theme inherits all the features and functions of the parent theme. As you customize and override some functions of the parent theme, this is why you will upload template files or add custom codes to modify the parent theme’s default function and features. By default, the child theme will have a blank style.css and empty functions.php file. As you you go along, you can slowly add your customizations later on.

    #3] The child theme theme is the whole x-child folder. Icon, Integrity, Ethos and Renew, these are the stacks. With the help of the child theme, you can override any of these stacks functions.

    Hope this explains it briefly.

    #1359082

    Hello
    Participant

    Hi,
    For the first questions, will https://www.diffchecker.com/ help find that < character? By templates you mean each file? Or is that site just to check if the codes are the same?

    For the second question, I am still confused. I have been suggested to work on the child theme. So do you mean leave all the files in the child theme and check each file from there (so the child theme functions at the same time) and delete the unmodified files?

    This is at the same time having a backup of the child theme on my PC?

    Then the way I tell if the < character is in a file/template is if is shows in the code after running the files in diffchecker.com? And my site still shows it? Or do I have to look for that < manually? But then how am I supposed to know if it is supposed to be there as the code or a rouge <?

    For the third question, so I just check only the files in Icon and leave the rest as Icon is my stack?

    Finally, do I really need to download a new child theme copy? Or can I just check the files from my current child theme and delete the unmodified files? As I don’t see the point of doing that if I am just checking the files not the folders.

    Because by checking the files while in the current child theme, that means the site will still run with the child theme modifications am I correct?

    If I install a new child theme (with empty folders) and don’t switch to the parent, the site will be down?

    I just like to have as few hoops to jump through and avoid as few possible disasters as possible.

    P.S. How long do you think this will all take?

    Many thanks,

    #1359188

    Rue Nel
    Moderator

    Hello There,

    I have investigated your parent them and it turns out that you have modified the parent theme. You accidentally added the “<” in the _header.php file in the parent theme.

    <?php
    
    // =============================================================================
    // VIEWS/GLOBAL/_HEADER.PHP
    // -----------------------------------------------------------------------------
    // Declares the DOCTYPE for the site and includes the <head>.
    // =============================================================================
    
    ?>
    
    <!DOCTYPE html>
    <!--[if IE 9]><html class="no-js ie9" <?php language_attributes(); ?>><![endif]-->
    <!--[if gt IE 9]><!--><html class="no-js" <?php language_attributes(); ?>><!--<![endif]-->
    
    <head>
      <?php wp_head(); ?>
    </head>
      <  
    <body <?php body_class(); ?>>
    
      <?php do_action( 'x_before_site_begin' ); ?>
    
      <div id="top" class="site">
    
      <?php do_action( 'x_after_site_begin' ); ?>

    I already removed it to save you from trouble. Please keep in mind that parent theme should not be modified. You should only place all your modifications and customizations in the child theme. Activating the child will not bring the site down unless the problem is with the parent theme itself.

    If you need anything else, please let us know.

    #1360481

    Hello
    Participant

    Hi,
    I didn’t get a new post notification so I only just saw this. Please could you check as there is no notification in my junk email or inbox.

    Great! Thank you so much! That has really saved me a lot of time and trouble.

    But as for the files in the child theme that have not been modified. Should I use http://www.diffchecker.com to compare them with the files in the parent theme and delete the files in the child theme that are the same?

    Which exact folder in the parent theme should I be looking for and checking the files from or are they all in different folders? Please send screenshots showing the paths to the exact folder/s.

    Many thanks!

    #1360778

    Lely
    Moderator

    Hi There,

    Once you replied on the thread, you’re now unsubscribe and will not receive any notification. That is how it works by default. If you want to receive notification once we reply, please resubscribe. Please check this link:http://www.rewweb.co.uk/reply-subscribed/

    Regarding the files, correct. Remove the files from the child theme that is not updated and the same with the file on you main x theme.

    It should be the same folder on your x theme.
    For example, you have edited _header.php from your child theme here: \wp-content\themes\x-child\framework\views\global
    It’s orginal file is here: \wp-content\themes\x\framework\views\global

    Hope this helps.

    #1360794

    Paul R
    Moderator

    Hi,

    To be sure, you can download a fresh copy of the theme from your themeforest download page, click Download next to X and choose: Installable Theme Files

    Then compare your child theme files to that fresh copy. If it’s the same you may delete the file in your child theme.

    Parent and child have the same file path.

    eg. for _header.php

    parent – wp-content/themes/x/framework/views/global/_header.php
    child – wp-content/themes/x-child/framework/views/global/_header.php

    Hope that helps.

    #1361001

    Hello
    Participant

    Hi,
    Thank you. I have attached a screenshot of the downloaded new X Theme files. So check my child theme from these files?

    Also in the previous reply, you said to “Remove the files from the child theme that is not updated and the same with the file on you main x theme.”

    Please clarify what you mean by “the same with the file on you main x theme.” Are you asking me to delete the same UNMODIFIED file on my parent theme?

    Is this not against practice to modify/delete files in the parent theme? Will this stop X theme from functioning?

    By comparing the files to the fresh copy, is that an exact file check for modifications? As it is not in the same installed folder and for whatever reason, the installed parent theme could have modifications in them?

    Saying that I don’t remember modifying any of them in the parent. I am just trying to avoid problems and make sure that the files I am checking are the correct ones when I go through the process.

    Many thanks,

    #1361022

    Lely
    Moderator

    Hi There,

    Main X theme files should not be edited. Any files cannot be deleted also.
    By this Remove the files from the child theme that is not updated and the same with the file on you main x theme.” What I meant was to delete the existence of the file on your child theme if it’s the same(*not modified or updated) with X main theme.

    Yes, you may compare from a fresh X theme.

    Hope this helps.

    #1365947

    Hello
    Participant

    Hi,
    Finally done it. The site seems to run fine without all the extra files in my child theme.

    Please could you double check my child theme and parent to see if everything is in order.

    Many thanks for your help!!

    #1366122

    Joao
    Moderator

    Hi There,

    Everything seems fine.

    Let us know if you need further assistance.

    Joao