Christian Chung
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Complicated Use Of Categories… Trying To Avoid MultisiteIf I understand the question correctly, you can use the template hierarchy and specialized menus and sidebars to achieve everything you’re trying to do:
So for the Main Category you would need 2 template files:
category-main.php sidebar-main.php
You would also need to register the specific menu and sidebar for this category.
For a City Category,you would need 2 different template files
category-newyork.php sidebar-newyork.php
Then register the specific menus and sidebar.
After that, assign the “cornerstone” content to Main Category and any city category you want it to display in. For content unique to a city, only assign it to that city’s category.
You shouldn’t have to worry about duplicate content, especially if content for use in multiple places will exist in the main category. Just use rel=”canonical”.
Forum: Fixing WordPress
In reply to: Twenty Thirteen Footer Theme Edit in ErrorI hadn’t thought of the functions file. And in most cases no, it’s not much work, provided you can remember what was changed. When offering help, I usually try to assume nothing.
@coolgearguy: I guess what WPyogi is saying is that you should create a blank child theme and move over files that were modified into it.
Here’s the docs to create a child theme: https://codex.www.ads-software.com/Child_Themes
Apologies if I’ve confused the issue.
Forum: Fixing WordPress
In reply to: Twenty Thirteen Footer Theme Edit in Error@wpyogi: Ideally no, but like you, I have no idea what modifications were made. I understand conceptually why this is not the best solution, however it may not be realistic to ask him to literally start over with a “You should have read the documentation before you editted your theme.”
From where I’m sitting, following those steps he gets to 1)keep the changes that he likes 2)update core 3)has a place to continue to modify his site.
Ultimately, you’re right though.
@coolgearguy: You really should delete any files from the child theme that haven’t been modified. I didn’t include that as a step, but I should have.
Forum: Fixing WordPress
In reply to: Form submits multiple times with one click.What are you doing with the data? Why are you writing php in posts/pages? Are your posting to the WordPress database?
In general, for anything that I don’t want WordPress (specifically) to handle, I keep separate from the WordPress directory. If you want some of WordPress’s functionality, you can always include wp-load.php. So I guess, I would take it out of WordPress.
Forum: Fixing WordPress
In reply to: REMOVE Date and Time Stamp!@esmi: If that was directed toward me, I fully understand why we only support what we support. However, it’s one line of basic css, I didn’t thing I was a)stealing the opportunity of the original developer to make money supporting their product, b) removing the onus that is on the original developer to support their product, or c)opening any doors, cans of worms etc.
@kimberlyrae: Sorry to hear about your original developer. And you’re quite welcome for the help, looks great indeed.
Forum: Fixing WordPress
In reply to: why is there gobbeldy gook at the top of my pagesIt’s not a temporary fix, it’s just hiding the symptom.
Correct, I’m sorry if my wording was misleading. @tangerine3: You’re not fixing anything by deleting those lines because they are being written by another script. It will guaranteed write those lines, or a variation thereof, again once you delete them.
Follow the steps that @esmi provided and you should be okay. I’ll update this thread as I work on the issue as well.
Forum: Fixing WordPress
In reply to: REMOVE Date and Time Stamp!This is the theme you’re using:
/* Theme Name: KimberlyRae Theme URI: Description: Custom blog design by PixelGeek Designs. Version: 1.0 Author: Melisa Nishi Author URI: https://www.pixelgeekdesign.com */
It appears to be a custom theme, which we do not support here. You can contact the original developers for help. However, because this is such a simple problem, the simplest fix for you would be to navigate to your WordPress dashboard>Appearance>Editor and add the following to very bottom to the editor on a new line:
.commentmetadata{display:none;}
Forum: Fixing WordPress
In reply to: Twenty Thirteen Footer Theme Edit in ErrorJust to clarify, I included step 1 so that you have a local copy of your site in case anything goes wrong. Once you download it to your machine, just keep in somewhere safe in case of an issue, that way you can always start over from where you are presently.
Forum: Fixing WordPress
In reply to: Twenty Thirteen Footer Theme Edit in ErrorThis is why you should always create child themes when working on themes packaged with WordPress.
Instead of answering your questions, I will lay out the steps you should take and in so doing, most of your questions will be answered.
1. Download your editted version of the twenty thirteen them to your computer. wp-content/themes/twentythirteen
2. Download a new copy of WordPress 3.6 from this site.
3. Unzip the new copy of WordPress.
4. On your server, rename the wp-content/themes/twentythirteen directory to mytwentythirteen. This is now your child theme directory.
5. Upload the twentythirteen directory to your server. This is now your parent theme and should not be editted.
6. In the mytwentythirteen directory, find style.css. You’ll want to edit this file. At the top, there is a code comment block. You need to add this line
Template: twentythirteen
and you also should change the title and description to include “child theme” in the same comment block.
7. In the WordPress dashboard, set your theme to Twenty Thirteen Child Them or whatever you named the child theme.
8. And finally, to fix your problem, you can delete footer.php from your child theme and it will be as if nothing changed. If you made modifications to footer.php, you will have to use your best judgement, but you will have the original code available.
Forum: Fixing WordPress
In reply to: why is there gobbeldy gook at the top of my pagesThis actually happened to one of my client’s sites. Thankfully it’s still in a staging environment. I’m thinking we got hacked tangerine3.
A malicious script is writing javascript to header.php. I’ve followed basic steps:
https://codex.www.ads-software.com/FAQ_My_site_was_hacked
I’ll watch this thread. For immediate, albeit temporary, fix, on a live site, delete those lines out of header.php.
Forum: Fixing WordPress
In reply to: Theme keeps truncating my postsWhat theme are you using?
Forum: Fixing WordPress
In reply to: Twenty Thirteen Footer Theme Edit in ErrorYou are probably missing at least:
<a href="<?php echo esc_url( __( 'https://www.ads-software.com/', 'twentythirteen' ) ); ?>"
as what you posted is incomplete.
Forum: Fixing WordPress
In reply to: Twenty Thirteen Footer Theme Edit in ErrorForum: Fixing WordPress
In reply to: strange behaviour with UL and LIIt seems to be an issue with webkit. For more information:
https://core.trac.www.ads-software.com/ticket/17154Update core and theme and that may fix your issue.
Yes it’s possible. Keep in mind, the following is just an educated guess give that loop-index.php is most likely code block called by
<?php get_template_part('loop','index'); ?>
So in archive.php and category.php, you’d want to locate the template part that is called using the function above. If those 2 files don’t include that function, than all the code used to render the page is in those pages (probably). That said, what you want to do is just enter
<?php ech get_the_post_thumbnail($post_id, 'thumbnail'); ?>
If they do contain that function, you’ll have to add that code in the template part that is called.
I’m sorry if that was confusing, but the short answer is yes it is absolutely possible. For more details of what I believe is relevant to your issue, see the links below.
https://codex.www.ads-software.com/Creating_an_Archive_Index
https://codex.www.ads-software.com/Function_Reference/get_template_part
https://codex.www.ads-software.com/Function_Reference/get_the_post_thumbnail