Forum Replies Created
-
AuthorPosts
-
January 17, 2013 at 12:17 pm in reply to: Education theme – hide tags and categories from visitors #12662
cdils
ParticipantHi there,
You'll need to use the genesis_post_meta filter. Try something like this in your functions.php. You'll notice it's basically your same code above, but it needs to be wrapped in a function and read in via a filter.
/** Customize the post meta function */
add_filter(
'genesis_post_meta'
,
'post_meta_filter'
);
function
post_meta_filter(
$post_meta
) {
if
( is_user_logged_in() ) {
$post_meta
=
'[post_categories] // [post_tags]';
return
$post_meta
;
}}
Carrie
Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. 🙂
I host a weekly WordPress-focused podcast called Office Hours. I tweet @cdils.
cdils
ParticipantYou might be able to try something like this:
/** Remove Pagination from post type archives **/
add_action(
'parse_query'
,
'cd_nopaging'
);
function
cd_nopaging(
$query
) {
if
(is_post_type_archive(
)) {
$query
->set(
'nopaging'
, 1);
}
}
You can reference the WordPress Codex in case is_post_type_archive() isn't the right conditional check for your case.
http://codex.wordpress.org/Conditional_Tags
Cheers,
Carrie
Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. 🙂
I host a weekly WordPress-focused podcast called Office Hours. I tweet @cdils.
cdils
ParticipantYou can use the genesis_seo_ title filter to remove the link. Here's an example:
http://www.briangardner.com/code/customize-header-url/
Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. 🙂
I host a weekly WordPress-focused podcast called Office Hours. I tweet @cdils.
cdils
ParticipantHi Laura,
That is the default behavior for the archive template to show those elements. You can work around it by creating a custom archive template or try out the Genesis 404 Page plugin.
Cheers,
Carrie
Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. 🙂
I host a weekly WordPress-focused podcast called Office Hours. I tweet @cdils.
cdils
ParticipantLooks great Robert. Love the search filtering drop-downs for the taxonomies. Slick!
Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. 🙂
I host a weekly WordPress-focused podcast called Office Hours. I tweet @cdils.
cdils
ParticipantHi, I'm not sure where to go from here. Let me see if I can get someone to help.
Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. 🙂
I host a weekly WordPress-focused podcast called Office Hours. I tweet @cdils.
cdils
ParticipantThere's basically three components:
Add the javascript files to your site.
Call in those scripts via your site's functions.php
Add in custom styling for your featured slider in stylesheet.css1. You'll need to download backstretch.js and include it with your theme files - upload it to wp-content/themes/minimum/js or wherever you want. There's an additional script used in Stretch called backstretch-set.js. Here's a link for that code: https://gist.github.com/4424049.
2. From there you'll need to call those scripts in via your theme's function.php file. Here's an example of how it's being called in from the Stretch theme:
/** Load Backstretch script and prepare images for loading */
add_action( 'wp_enqueue_scripts', 'stretch_enqueue_scripts' );
function stretch_enqueue_scripts() {
wp_enqueue_script( 'stretch-backstretch', get_bloginfo( 'stylesheet_directory' ) . '/js/backstretch.js', array( 'jquery' ), '1.0.0', true );wp_enqueue_script( 'stretch-backstretch-set', get_bloginfo('stylesheet_directory').'/js/backstretch-set.js' , array( 'jquery', 'stretch-backstretch' ), '1.0.0', true );
}/** You'll need to customize this bit below**/
add_action( 'genesis_after_post', 'stretch_set_background_image' );
function stretch_set_background_image() {$image = array( 'src' => has_post_thumbnail() ? genesis_get_image( array( 'format' => 'url' ) ) : genesis_get_option( 'stretch_default_image' ) );
wp_localize_script( 'stretch-backstretch-set', 'BackStretchImg', $image );
}Make sure the file path in the function above matches wherever you added backstretch.js and backstretch-set.js. There a function in the the Minimum theme's function.php called
function
minimum_featured_image()
and that's where your featured slider is probably being called in (unless you've customized it a different way). You'll need to modify that function to mimicfunction
stretch_set_background_image().
3. Lastly, you'll need to apply some CSS to your theme's stylesheet.css for those divs containing your featured slider. Keep in mind the Stretch theme is using a static image versus a slider, so there will be some differences.
Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. 🙂
I host a weekly WordPress-focused podcast called Office Hours. I tweet @cdils.
cdils
ParticipantThe Stretch theme is calling in the background stretch scripts from functions.php. The actual styling is taking place in stylesheet.css.
What are the "scripts and code" you have found? Are they from the original Stretch theme?
Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. 🙂
I host a weekly WordPress-focused podcast called Office Hours. I tweet @cdils.
cdils
ParticipantHi there,
Can you post a link to your site so I can see what you currently have?
Cheers,
Carrie
Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. 🙂
I host a weekly WordPress-focused podcast called Office Hours. I tweet @cdils.
cdils
ParticipantHi Lucas,
Try creating a regular ole Page and setting it to use your archive-tips.php template. There's a dropdown box on the page where you can select which sidebar you want to use - no extra code needed. 🙂
The code you're referencing above would be if you wanted to specify the sidebar with code alone and no template (archive-tips.php).
Carrie
Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. 🙂
I host a weekly WordPress-focused podcast called Office Hours. I tweet @cdils.
cdils
ParticipantAh, glad you got it figured! Yes, anxiously awaiting the release of 1.9.
If you're on Google+, check out the Genesis WP community at https://plus.google.com/u/0/communities/113206330486200023679. It's a good place to lurk & learn as well as ask for help.
Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. 🙂
I host a weekly WordPress-focused podcast called Office Hours. I tweet @cdils.
cdils
ParticipantOops - thanks, anitac. Shoulda kept on scrolling.
Meanwhile, I'd rather be fishing in Montana... 🙂
Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. 🙂
I host a weekly WordPress-focused podcast called Office Hours. I tweet @cdils.
cdils
ParticipantHi Justin,
If you want to change the min-height of your #header, you can add in margins to your title area and header right widget area to push it to vertical alignment. For example
#header {
min-height: 100px;
}
#title-area, #header .widget-area {
margin-top: 20px;
}
As for your header background color, I'm not seeing any breaks at high-resolution. Maybe you already fixed that?
Carrie
Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. 🙂
I host a weekly WordPress-focused podcast called Office Hours. I tweet @cdils.
cdils
ParticipantHey Rob,
Looks like you haven't added the slider in. Here's a specific tut on Adding a Slider to the Minimum Theme. Let me know if you have any questions or still need help.
Carrie
Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. 🙂
I host a weekly WordPress-focused podcast called Office Hours. I tweet @cdils.
cdils
ParticipantHi Phil,
I think a couple of CSS changes will do the trick. For starters, you'll want to remove the background color from your main #wrap
#wrap {
background: url("images/bg.png") repeat-x scroll 0 0 #FFFFFF; //Just get rid of the #FFF
}
That'll free you up to use another background for your #inner.
Add your custom background image to your #inner tag and set the overflow to hidden, like this:#inner {
background: url('whatever.png');
clear: both;
overflow: hidden;}
Carrie
Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. 🙂
I host a weekly WordPress-focused podcast called Office Hours. I tweet @cdils.
cdils
ParticipantHave you downloaded and configured the Genesis Slider plugin? The configuration takes place in the Genesis > Genesis Slider settings, not the widget itself.
Scroll toward the bottom of this article for step by step instructions on setting up the slider: http://my.studiopress.com/setup/agentpress-theme/
Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. 🙂
I host a weekly WordPress-focused podcast called Office Hours. I tweet @cdils.
-
AuthorPosts