Forum Replies Created
-
AuthorPosts
-
essaysnarkParticipant
Thanks - this was really helpful, had been thinking about doing something similar on the eleven40 theme and your instructions got me there.
essaysnarkParticipantHi karlhen - looks like your site is back up again, so congrats on working through that! There was probably a mistake introduced in the code. The functions.php file is very sensitive to typos and it's easy to make mistakes with this.
One possibility is that the code published here on the forum has formatting. It's important that the snippet you copy gets pasted as plain text; that's why Brad suggested using a text editor. If you're on a PC then you can use Notepad or if you're on the Mac, use TextEdit. Also, before making changes, be sure to have a backup of your functions.php on hand so that you can restore it if you need to, and have access to your server via FTP so that you can upload that backup if it gets screwy.
Here's what to do to clear out any formatting in copied text:
- Copy the snippet above, then paste it into the text editor. This will strip out any other types of formatting.
- Then, select it from the text editor, and paste it into the bottom of your child theme's functions.php file (if it says Genesis: Theme Functions at the top you're in the wrong place! Use the dropdown menu on the right to switch to your Child Theme, then click on functions.php - it should say "[theme name] Child Theme: Theme Functions (functions.php) at the top).
- Also, make sure you don't delete anything that's already in functions.php; just add this code to the bottom.
- Save your file and hopefully it worked this time!
One additional change you'll need to make: If you literally don't want any text at the beginning of your breadcrumbs line, then delete the words
Remove This Text from the snippet above. But leave the single-quote marks, you need those. Just delete the three words themselves. You can delete this after it's been pasted into functions.php.
Hopefully I didn't tell you what you already know with this stuff! Let us know if you have other problems.
essaysnarkParticipantOK a couple ideas: If any of the plugins you removed had the word "Genesis" in them, then it's likely that's what took out your menus. A common plugin called Genesis Simple Hooks is used to add custom code and have it "hook into" the Genesis framework. Do you know if you had that installed? If so, adding it back could be a first step, though I doubt it would have saved the actual code in the database if the plugin was actually deleted.
If you're feeling adventurous, then this is the place to start on customizing when/where menus are displayed in Genesis: http://my.studiopress.com/snippets/navigation-menus/
If you don't have experience with editing the functions.php file then you should be VERY careful with all of this, as one typo can bring down your whole site. Make sure you have FTP access to the server before you start, and create a backup of everything before you make any changes.
There's also a lot of great talent here and somebody may be able to step in with some paid help if that's what you need - you might want to post a new thread to see if you have any takers.
essaysnarkParticipantIf the theme has been customized it's going to be difficult for us to help. The default Mocha theme has it set up as I've been describing, you can see it here: http://demo.studiopress.com/mocha/ If that widget area has been removed, then consider adding it back perhaps?
essaysnarkParticipantjruez, the Genesis Featured Widget Amplified plugin might work for you. It gives a lot more options for what and how to display the posts. One possibility would be to use the Show Excerpt option on the widget, and then in your posts you could write the excerpt to be exactly what you want to display.
http://wordpress.org/extend/plugins/genesis-featured-widget-amplified/
(Nick writes great plugins.)
essaysnarkParticipantMy last reply was actually meant in response to your previous one... Let me try to offer something else now. 🙂
With our theme - again it could be different with Mocha - we have a menu below the header image that is set up in the Menus screen and then assigned in that same screen in the Theme Locations - Primary Navigation Menu dropdown. On our theme, it displays that menu starting on the left side top of the screen and extends across.
We have another menuing system which is what I described originally, using the widget. That menus is also defined in the Menus screen but it's not selected in the dropdowns there; it's only added to the site using the Custom Menu widget.
Not sure this is helping you any but wanted to try and explain how the two different options are sometimes configured.
If you haven't already, you might want to check out your theme's instructions - this post tells you where to find them. The menu setup is usually covered there.
essaysnarkParticipantThe instructions I provided are to get the menus to display across the top - yes it can be confusing since the sidebar region may have a non-intuitive name, like in our theme it's called Header Right but that sidebar area actually puts the menus all the way across the top of our site.
essaysnarkParticipantHi nwsports - I don't have any experience with the Mocha theme, but the first question I had is, have you added your custom menus onto a sidebar area? The way it works on our theme is, we set up the menus like you have, and then go to Appearance -> Widgets and drag the Custom Menu widget over to the sidebar (on our theme it's called the Header Right sidebar, it might be different for yours). Do you have that part set up?
essaysnarkParticipantGlad you got it solved! It's crazy that a firewall thing would be the cause so it's good to know about that, too.
essaysnarkParticipantHey there -
Just curious why you want to change the name of the theme? It doesn't show anywhere on the site, does it?
To have it show up in the backend with a different name, then you need to start by renaming the directory from crystal to vietfix on the server ( at \wp-content\themes\crystal\). I don't have the Crystal theme so I am not familiar with how it's put together so there may be more to it than just renaming the directory, but that's the first place to start. That change would get it to show up in the WP Dashboard Appearance -> Themes backend screen under your preferred name. (I recommend copying your existing Crystal theme into the new theme and making your modifications there, instead of changing the original.) Doing this means you won't get notified of updates to the Crystal theme, however.
The easiest way to remove the post info is through the Genesis Simple Edits plugin: http://wordpress.org/extend/plugins/genesis-simple-edits/
If you're comfortable with PHP and modifying functions.php, then you can use the snippets found here: http://my.studiopress.com/snippets/post-info/#customize
essaysnarkParticipantIf the Update button was missing, it could be due to a file permissions issue on the server.
essaysnarkParticipantHey rstyner - Our web host supports a nice workflow for us in terms of having a production site and a staging site, with the ability to easily make snapshots from one to the other. So an admittedly very basic process we've got is we create a backup, then push a snapshot of production to staging, then do whatever testing and tweaking we need to there, then port the finalized changes back to production. We create backups all the time now as restore points, in case something goes sideways. We also store at least one backup a week offsite at Amazon S3.
For the staging site, not only is it turned off to web crawlers, but we also implement the Members plugin and make the site Private with their options (you must log in before you can view anything). And, we do a search-and-replace using a script we have to change all of our users' email addresses, so that we don't inadvertently trigger emails to our customers through the system testing.
While we've always been good about keeping plugins and themes up to date, we've also now started a process of carefully documenting when we update each one, so that we can try to trace back any weird behavior that's detected much later (it seems like we only notice something went screwy after it's been live for a couple weeks).
We don't do the type of structured testing that we should when plugins get updated; that lackadaisical attitude may change soon though based on some pain we've suffered through recently!
Great questions. Would be interested to see what others have to offer on this subject too.
essaysnarkParticipantIf the images are in the media library, did you try manually referencing one in the HTML editor using an img src tag?
essaysnarkParticipantHey ibietela, let me take a shot at this. I think you may have gotten things a little mixed up.
Are you trying to put share buttons on your site? It looks like the code you posted is from this tutorial: http://www.doncaprio.com/2012/08/how-to-add-a-stylish-set-of-share-buttons-to-blogger-wordpress.html (this is a different tutorial than you posted).
If so, then you don't want to put that code in the Simple Hooks plugin. That tutorial says to use the Post Layout plugin - a different beast entirely. (It's confusing since they both have a "before the content" field to paste code into, but they're very different.)
If you want the share buttons, then you should delete all CSS code from any fields in the Simple Hooks plugin, then go back to that tutorial and follow the instructions for placing that code in the other plugin.
If you actually are trying to put Adsense codes into your Genesis site, you can definitely use Simple Hooks for that but you'll need to insert the PHP code from that other tutorial that you first posted.
Hope that helps!
essaysnarkParticipantyetjuh, it sounds like what you want can be done with the standard WordPress settings. Did you do it this way? Go to Settings->Reading and for "Front page displays" choose "A static page". This won't work if you created your main homepage content as a WP Post; you need to copy that into a new Page instead. The codex has some help on this: http://codex.wordpress.org/Creating_a_Static_Front_Page
If you're saying that that's what you did and it's not working, then sure, tell us the URL - maybe just put a clear note in your post that it's an adult site so people can choose not to go there if they don't want to.
essaysnarkParticipantAwesome - glad you figured it out!
essaysnarkParticipantStrange. The plugin works great for me, we have a gazillion CPTs and custom taxonomies and they all display fine in the respective dropdowns in the widget. Maybe whatever is preventing that from working is the same thing that prevented your custom code from working.
essaysnarkParticipantThat plugin supports CPTs and custom taxonomies, It's specifically for Genesis. I don't see why it wouldn't work.
essaysnarkParticipantGlad to hear you got it sorted! Sometimes these things can be endlessly frustrating. 🙂
essaysnarkParticipantI am so sorry but I must correct you.
THIS is the chicken dance.
(aargh if only the youtube would post! trying again...)
-
AuthorPosts