Forum Replies Created
-
AuthorPosts
-
CarloMember
Hi there. In my experience, there's always a way to do things like this. Probably adding a filter to your theme functions will do the trick. However, I don't work with this plugin so I'm probably not the one who can solve this for you.
CarloMemberHi there. Here's some code you can add to the bottom of your theme stylesheet:
.entry { padding: 100px 120px; }
That will double the amount of whitespace.
CarloMemberWhich browser is not rendering the way you expected?
CarloMemberHi. In my opinion, you don't need to backup because all you're doing is adding a bit of code. If it doesn't work (which it should) you can just remove the code again. None of your data will be lost.
CarloMemberHi. You could try using this where you edited the code before:
$price = sprintf( 'Price %s', genesis_get_custom_field( ‘_listing_price’ ) ); $address = sprintf( 'Cash Flow %s', genesis_get_custom_field( ‘_listing_cashflow’ ) );
CarloMemberHi. What's the part of the site you want to remove? Is it the pale blue block towards the bottom?
If so, it looks like Brad's written a good tutorial for it:
http://wpsites.net/web-design/display-outreach-pro-sub-footer-widgets-on-front-or-home-page-only/
January 12, 2015 at 10:30 am in reply to: Parallax pro – Secondary Menu background and text color change #137187CarloMemberHi Webly. Add this code to the bottom of your theme stylesheet:
.site-header .sub-menu { background-color: #fff; }
CarloMemberAll pages/posts except homepage, that is meant to be full width content w no sidebar.
Hi. My understanding is you want full width content on all pages and posts except the front page, which you want to use the content/sidebar layout?
If that's what you want, you can set the default layout in Genesis theme settings as full width content. Then, add the below code to the top of your template
front-page.php
(i.e. directly below the<?php
line):add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_content_sidebar' );
CarloMemberHi grayflo. Custom taxonomies are best used if you're already using categories and tags and you need more organisation on top of that. You might as well use the taxonomies that you get for free (category and tag) before going about creating new ones, in my opinion.
However, if your plan was that lesson plans, printables, PowerPoints and articles would be your categories, I'd actually recommend that you use custom post types and custom fields. For a beginner it's probably too much work, but if you're willing to work with a designer (like myself) they can set up your theme to display each type of content with its own tailored design.
CarloMemberHi magneuz. The reason it works on the English version but not the Czech is that your image on the Czech version is too small. If you used one the size of the one you used on the English version, it would eliminate the problem. Is that a possibility?
CarloMemberHi Jade. I'm in the UK and would be interested in working with you. My link is below.
CarloMemberHi Kary. The reason you got a Dreamweaver error is because your code did not declare the function. Try this:
function medic_home_og() { if ( is_front_page() ) echo '<meta property="og:image" content="http://link/to/your/og/image/file" />'; } add_action( 'wp_head', 'medic_home_og', 5);
I also changed
is_home()
tois_front_page()
becauseis_home()
is for the latest posts index regardless of whether it's the front page.is_front_page()
is for the front page regardless of whether it's a static page or your latest posts.
January 12, 2015 at 9:50 am in reply to: Navigation not showing up on category archive pages #137175CarloMemberI see now. The reason your menu wouldn't show is because the function set the allowed post types to
'post'
and'articles'
. The post type for menu items is'nav_menu_item'
. So all your menu items were blocked from showing.However, the code you've implemented now might still have some issues. Firstly, it's excluding
'post'
and including'news'
(which you weren't doing before) and it also might cause your menu items to display in the main loop.I actually run very similar code on my own site, but I use
$query->is_main_query()
so that the post type manipulation runs for the main loop only and not the menu. You can use this code instead if you like://add custom post type to tags and categories function add_custom_types_to_tax( $query ) { if( ( $query->is_category() || $query->is_tag() ) && $query->is_main_query() ) { // Get all your post types $post_types = array('post' , 'articles'); $query->set( 'post_type', $post_types ); } return $query; } add_filter( 'pre_get_posts', 'add_custom_types_to_tax' );
CarloMemberI'm sure there are third-party Genesis themes out there that use flexbox – you just haven't found any yet!
it’s a bigger deal than just including a library or two and writing some script like other such tools – some server setup and so on.
??? No it's not. Flexbox is just a set of CSS codes. It's just a matter of typing them into the stylesheet. There are no libraries or scripts and definitely no server setup.
January 11, 2015 at 11:21 am in reply to: How to make Text Box widget have transparent background?? #137065CarloMemberHi Seth. It's next to impossible to solve an issue like this without being able to see the site. Deploy the site for now, let us know of the link and it should be easy to solve then.
January 11, 2015 at 10:25 am in reply to: genesis_title showing outside tag with Simple Hooks #137050CarloMemberI see what you want to do now. Try this code: (it's the same idea as what I posted before the but tailored to match the format you posted)
add_filter( 'wp_title', function( $old_title ) { return sprintf( '%s | %s by %s Book Review', $old_title, get_field( 'book_title' ), get_field( 'book_author' ) ); }, 20 );
January 11, 2015 at 10:14 am in reply to: Executive Pro theme: Contact Form in Post Excerpt on Slider #137046CarloMemberHi again Keirsten.
Try adding the below code to the top of the
front-page.php
template (i.e. directly below the<?php
line) and using the shortcode in the post.add_filter( 'the_excerpt', function() { return do_shortcode( get_the_content() ); } );
It might have unintended side effects but see how that works.
CarloMemberCarloMemberHi. Did you say the text was in a widget, and now it's in the footer? It looks like your widget is located in the Footer 1 widget area.
Try looking in that widget area, and then you can replace the text with an image code like below:
<img src="" alt="">
January 10, 2015 at 6:15 am in reply to: Navigation not showing up on category archive pages #136849CarloMemberHi Carrie. That's definitely a strange result.
You say that it's heavily modified. I took a look at the Foodie Pro demo and the menu does display on category archives, so it's not the way the theme is configured.
I also noticed another strange difference between the demo and your site, and that is that the footer element on your site is 'popped out' of the site container.
In other words, the markup structure in the theme demo is like this:
<body> <div class="site-container"> <header class="site-header"></header> <nav class="nav-primary"></nav> <div class="site-inner"></div> <footer class="site-footer"></footer> </div> </body>
But on your site, it's like this:
<body> <div class="site-container"> <header class="site-header"></header> <nav class="nav-primary"></nav> <div class="site-inner"></div> </div> <footer class="site-footer"></footer> </body>
Were you aware of that, or is that unexpected too?
Based on that, I think it may be due to a coding error somewhere.
I don't know if this will work, but try creating a new template called
category.php
and give it the following contents:<?php add_action( 'genesis_after_header', 'genesis_do_nav' ); genesis();
-
AuthorPosts