Forum Replies Created
-
AuthorPosts
-
BadlywiredMember
Hashim,
If you aren't a coder these approaches are not for you, because they are code heavy.
You can achieve what you want with one primary sidebar and then applying conditions so that you control what pages display what widgets. Like this
Primary SideBar
Widget A - show on home page only
Widget B - show on about page only
Widget C - show on all pages & posts except homepage & about page
etcSee what I mean? This way you just have to go through your widgets once, not all your posts.
WordPress does allow you to apply logic of when widgets are displayed however there are at least two plugins that do
- WidgetLogic https://wordpress.org/plugins/widget-logic/
- JetPack https://wordpress.org/plugins/jetpack/ which has this as one of its many optionsJetpack is easier to use for a non programmer, Widget logic requires you to understand WordPress conditional tags http://codex.wordpress.org/Conditional_Tags
There may be more plugins like this out there, but these are the two I know that currently work
My techy blog WordPress and stuff badlywired.com
BadlywiredMemberI'm not trying to be funny but are you missing something obvious?
The Child Theme and Page Template mechanisms are inbuilt to WordPress not specific to Genesis.
So double check that the child theme is correctly a child theme, i.e. the style.css contains this line
Template: genesis
in the comment block http://codex.wordpress.org/Child_ThemesAnd of course the directory name that contains your genesis code is 'genesis'
If that is in order, the next thing you want to check is that the permissions and ownership of page_blank.php as it is possible that you have created a file that you can obviously see (via ftp I assume?) but may not have permission to be read by php programs being run by the webserver user. Changing permissions to 754 if required.
My techy blog WordPress and stuff badlywired.com
January 15, 2015 at 11:06 am in reply to: Breadcrumbs showing html markup for superscript – want to hide html #137560BadlywiredMemberI can't think of anyway. But it is altering the behaviour of esc_html across the site (unless you use StudioPresses version), so there is a REMOTE chance that some HTML slips through that shouldn't somewhere and your site formatting gets screwed up, so hence not accepting any liability 🙂
My techy blog WordPress and stuff badlywired.com
BadlywiredMemberStrange. All I can say is it worked fine in my test multisite. I assume that your subsites are actually using Genesis child themes of course.
When you say "but it doesn’t show up in the drop downs in all my sites. " do you mean that or "but it doesn’t show up in the drop downs in ANY OF my sites.
If it is showing in some, but not others, I would be asking what is the difference - different themes? different plugins?
If it is not showing in ANY, then the first thing I'd do is install the Genesis 'Sample' theme and create a clean new subsite and work from there.
My techy blog WordPress and stuff badlywired.com
January 15, 2015 at 10:23 am in reply to: Breadcrumbs showing html markup for superscript – want to hide html #137555BadlywiredMemberp.s. I also raised this with StudioPress and they gave two other work arounds
......................... this is what they say --------For now, another workaround you are welcome to use that filters Genesis breadcrumb links only and not esc_html throughout WordPress is this:
add_filter( 'genesis_breadcrumb_link', 'sp_html_crumbs', 10, 4 ); function sp_html_crumbs( $link, $url, $title, $content ) { $link = sprintf( '<a href="%s"%s>%s</a>', esc_attr( $url ), $title, $content ); return $link; }
If you prefer, you can also solve the issue without writing code by installing the WordPress SEO plugin and activating breadcrumbs under SEO > Internal Links (http://d.pr/i/19y2Y ). This works because WordPress SEO doesn't escape HTML in breadcrumb links by default like Genesis does. (That may change in the future, though.)
My techy blog WordPress and stuff badlywired.com
January 15, 2015 at 8:01 am in reply to: Breadcrumbs showing html markup for superscript – want to hide html #137529BadlywiredMemberAdding this to your functions.php should do it
// filter to allow <sup> tag through esc_html add_filter('esc_html', 'bw_esc_html',10,2); function bw_esc_html($val, $text, $content = null) { $text = wp_check_invalid_utf8( $text ); return wp_kses($text, array ( 'sup' => array())); }
Obviously use at your own risk.
Detailed explanation of your issue here -> http://badlywired.com/2015/genesis-breadcrumbs-markup/
My techy blog WordPress and stuff badlywired.com
BadlywiredMemberp.s. I just noticed you still have the default genesis favicon, would be better to have a custom one
http://badlywired.com/2015/adding-favicon-genesis-theme/
My techy blog WordPress and stuff badlywired.com
BadlywiredMemberBadlywiredMemberI see you did it by adding a class to the menu item
.menu-secondary .firstitem { background-color: #f1e629; border: 1px solid grey; }
Just for the sake of it you could also have done it via 'first-child' without adding the class
.menu-secondary li:first-child { background-color: #f1e629; border: 1px solid grey; }
My techy blog WordPress and stuff badlywired.com
BadlywiredMemberDid you solve, this because it should work.
I even did it in my test multi site and it worked
my page_blank.php looked like this
<?php /* Template Name: Page Blank */ ?>
My techy blog WordPress and stuff badlywired.com
BadlywiredMemberUse this approach I detail here
http://badlywired.com/2015/applying-styling-specific-wordpress-page/using the css (assume your page is 123 )
body.page-id-123 { background-image: url("path to image") }
Depending on you exact requirements / theme you may need be more specific e.g.
body.page-id-123 .site-inner { background-image: url("path to image") }
whatever your 'default' background css selector is
My techy blog WordPress and stuff badlywired.com
BadlywiredMemberYes it makes sense.
Inspect the body tag and you should see a classe along the lines of category-blog
You can then style your page
width something like body.category-blog .content-sidebar-wrap {padding left: 10%; padding-right: 10% }
My blog post here explains a bit more about inspecting and using the body classes and the same principal can be applied to do what you need http://badlywired.com/2015/applying-styling-specific-wordpress-page/
....edit....
Devil is in the detail. I actually looked at your site and think I understand your issue, it is on the single pages
In this case there is a class on the <article> category-blog and category-photographySo you can custom style these with article.category-blog { ... whatever ....
My techy blog WordPress and stuff badlywired.com
BadlywiredMemberAt the time of writing, you hadn't changed it in the one place it matters
http://insight.crystalbastrology.com/wp-content/themes/crystal_b_custom/images/favicon.icoI blogged how to do this only recently http://badlywired.com/2015/adding-favicon-genesis-theme/
My techy blog WordPress and stuff badlywired.com
BadlywiredMemberYes, they are correct, WordPress will internally redirect http://www.mydomain.com to mydomain.com or visa versa using PHP based on the URL settings in general>settings (or wp-config.php).
The redirect is very important for SEO purposes otherwise you have in effect 2 SEPARATE websites with the same content, http://www.mydomain.com is a different sub domain to mydomain.com.
To avoid this PHP redirect, add the redirect to your .htaccess (there are tons of examples / how to do it on Google )
Apply the .htaccess redirect
Then your host won't be able to claim then that is an issue, but I doubt it will really improve speed, but it is one less excuse from your host.
My techy blog WordPress and stuff badlywired.com
BadlywiredMemberI use this plugin WP User Avatar https://wordpress.org/plugins/wp-user-avatar/ works on my sites
My techy blog WordPress and stuff badlywired.com
BadlywiredMemberIf it is a slow overloaded shared server without any PHP caching then the PHP redirect could be a factor.
You should check out http://www.webpagetest.org to analyse what is slow. However, normally slow hosts are the biggest issue and can be solved by paying more for your service.
My techy blog WordPress and stuff badlywired.com
-
AuthorPosts