Forum Replies Created
-
AuthorPosts
-
codebot5000Member
Will do thank you.
codebot5000MemberHi Davinder, thank you for all of you help, however, I have tried changing the padding of .home-even, .home-odd in @media only screen and (max-width: 768px) and nothing seems to change.
codebot5000MemberThank you Davinder! The documentation suggests a minimum 1140 so most if my images are between 1140 and 1575 px. Do you think that is too large? I feel like my up time is crazy slow. I don't know whether to attribute this to my hosting or the images.
codebot5000MemberI just changed the padding in inner-site to 0. The pictures are still not scaling though. I'm actually just going to have to ditch this theme and go with the standard parallax pro version.
codebot5000MemberCheck it out now. I think the issue has been fixed.
codebot5000MemberThank you frobn, I put background-size: cover; in my #welcome section and I added
@media only screen and (max-width: 1023px) {.site-inner {
padding-left: 0;
padding-right: 0;
}
}To the bottom of my main style.css but nothing seems to have changed.
codebot5000MemberYeah, you will not see it if you use the inspect element tool. You have to actually load the page on your phone. I'm using an iphone 6. The background images do not scale right. You can't even make out what they are. I tried setting them to width: 100% and height: auto; but it still doesn't work.
codebot5000MemberI figured out it was a plugin causing some of the issues, but I'm still having issues with the background images in mobile view. They do not scale properly to fit the screen when you view them on your phone.
codebot5000MemberI don't know what the issue is. It works fine on my localhost page but wont work on my parallax pro child theme. It's driving me crazy.
codebot5000MemberThanks, the page is now working, but I still can't seem to get my custom post type page to display in the nav menu. I have tried the method copied below. The problem is that after I refresh the permalinks I'm not seeing anything display in the menu section that I can drag over.
Displaying Your Post Type on the Front End
Once you’ve added some products, you’ll need to be able to display these on the front end of your site.
Setting Permalinks to Link to Your Post Type’s PagesFirst you need to refresh the permalinks on your site so that WordPress will use the correct links to display products or product archives:
In the WordPress admin, go to Settings -> Permalinks.
Make sure the ‘post name’ option is selected.
Click the Save Changes button.Note: You need to do this even if you’ve already configured permalinks, as WordPress needs to refresh these settings for the new set of links to your products.
Adding Your Post Type to the Navigation MenuIf you want to add products to your navigation menu, you can. Go to Appearance -> Menus, and you’ll see that Products are displayed on the left. Simply drag any products onto your menu to include them.
codebot5000MemberI did not set up a page template because as soon as I set my has_archive to true my whole page breaks. You will see now that there is an internal sever error as a result of adding this
'has_archive' => true,
Here is the custom post type I'm working with
<?php /* Plugin Name: Custom Post Types Plugin URI: http://www.jeff-cunningham.com/ Description: Here are the custom post types for my website Version: 1.0 Author: Jeff Cunningham Author URI: http://jeff-cunningham.com */ class JC_Portfolio_Post_Type{ public function __construct(){ $this->register_post_type(); $this->taxonomies(); } public function register_post_type(){ $labels = array ( 'name' => 'portfolio Selection', 'singular_name' => 'portfolio', 'add_new' => 'Add New portfolio', 'add_new_item' => 'Add New portfolio', 'edit_item' => 'Edit portfolio', 'new_item' => 'New portfolio', 'all_items' => 'All portfolio', 'view_item' => 'View portfolio', 'search_items' => 'Search All portfolio', 'not_found' => 'Nothing found', 'not_found_in_trash' => 'Nothing found in the Trash', 'parent_item_colon' => '', 'menu_name' => 'portfolio Selection' 'has_archive' => true, ); $args = array ( 'labels' => $labels, 'description' => 'This section holds all portfolio pieces', 'public' => true, 'menu_position' => 6, // 'menu_icon' => get_stylesheet_directory_uri() .'images/movie_art.png' 'supports' => array('title', 'editor') ); register_post_type ('jc_portfolio', $args); } public function taxonomies(){ $taxonomies = array(); $taxonomies['genre'] = array ( 'query_var' => 'movie_var', 'hierachical' => true, 'rewrite' => array ( 'slug' => 'movies/genre'), 'labels' => array ( 'name' => 'Genre', 'singular_name' => 'Genre', 'search_items' => 'Search Genre', 'all_items' => 'All Genre', 'parent_item' => 'Parent Genre', 'parent_item_colon' => 'Parent Genre', 'edit_item' => 'Edit Genre', 'update_item' => 'Update Genre', 'add_new_item' => 'Add New Genre', 'new_item_name' => 'New Genre Name', 'menu_name' => 'Genre' ) ); $taxonomies['studio'] = array ( 'query_var' => 'movie_var', 'hierachical' => true, 'rewrite' => array ( 'slug' => 'movies/studio'), 'labels' => array ( 'name' => 'Studio', 'singular_name' => 'Studio', 'search_items' => 'Search Studio', 'all_items' => 'All Studio', 'parent_item' => 'Parent Studio', 'parent_item_colon' => 'Parent Studio', 'edit_item' => 'Edit Studio', 'update_item' => 'Update Studio', 'add_new_item' => 'Add New Studio', 'new_item_name' => 'New Studio Name', 'menu_name' => 'Studio' ) ); $this->register_all_taxonomies($taxonomies); } public function register_all_taxonomies($taxonomies){ foreach ($taxonomies as $name => $arr) { register_taxonomy ($name, array(dh_movies), $arr); } } } add_action('init', function(){ new JC_Portfolio_Post_Type(); });
codebot5000MemberOh that works too thanks for your help!
codebot5000MemberI got it! Thanks for all your help. I ended up doing this:
<ul> <li><i class="fa fa-line-chart fa-4x fa-spin-hover"></i><p>SEO Friendly</p></li> <li><i class="fa fa-mobile fa-4x fa-spin-hover"></i><p>Fully Responsive</p></li> <li><i class="fa fa-code fa-4x fa-spin-hover"></i><p>Customized For your Needs</p></li> </ul>
CSS:
#text-11 .textwidget ul li { position: relative; display: inline-block; }
codebot5000MemberI tried this but it doesn't seem to do anything
#text-2 .textwidget li span { display: inline-block; }
codebot5000MemberCould you copy and paste your css for this? I cannot find it in your style sheet. Are you able to get the writing underneath the icons?
Thanks a lot I appreciate your help.
codebot5000MemberI'm trying to do all the elements on one line like your second example. Right now they are stack up on top of each other. The thing is, I don't want to have the text spinning with the icons. That's why I made separate p tags instead of putting them in the i's. I know how to do this with basic CSS, but it doesn't seem to work within the widget area. Working with CSS in WordPress Seems to be a pain.
codebot5000MemberSorry about that I guess it took out my tags. This is what I meant to put in there
<ul> <li><i class="fa fa-line-chart fa-4x fa-spin-hover"></i><p>SEO Friendly</p></li> <li><i class="fa fa-mobile fa-4x fa-spin-hover"></i><p>Fully Responsive</p></li> <li><i class="fa fa-code fa-4x fa-spin-hover"></i><p>Customized For your Needs</p></li> </ul>
and the css:
#text-4 .textwidget ul li { position: relative; display: inline-block; }
Automatically create paragraphs is not selected. I have tried to a million thins to get these to go horizontal but nothing seems to work.
codebot5000MemberThank you I will give that a try.
codebot5000MemberThank you Susie! Interesting, I did not think it mattered if you put the class before or after the href. Even more interesting that Studiopress suggests code that doesn't work. Maybe there is some kind of syntax error I'm not seeing.
Anyways thanks!
-
AuthorPosts