Forum Replies Created
-
AuthorPosts
-
October 29, 2014 at 1:43 am in reply to: Multiple loops on same page with different image sizes? #129674Henrik BlomgrenMember
It seems to work. The posts are output and they work well as I want them to. But I don´t see any difference in output from when I did not have wp_reset_postdata(); after the loops. So I´m guessing it works.
Thanks for the help Brad. Hopefully I´ll work out the quirks soon and can show it all 🙂
October 28, 2014 at 9:32 am in reply to: Multiple loops on same page with different image sizes? #129587Henrik BlomgrenMemberThanks Brad!
So I just have to put wp_reset_postdata(); after each genesis_custom_loop();? Is that a good way of doing it with Genesis? Since it´s that I´m worried about. If genesis plays nicely with everything.
October 27, 2014 at 5:22 pm in reply to: Strange Problem – Sidebar Disappears to Bottom of Website #129492Henrik BlomgrenMemberI would suggest you take the latest version of the Genesis Sample theme. Check the CSS file there and start over. Since from what I saw of the CSS file it has some serious trouble. Adding a 5000px margin only to remove said margin with a 5000px padding is not a good idea.
When you make the window smaller you go over your width. You´ve set the width of the content to be 800px but with smaller screens the content is resized to 720px. Obviously 800px and 180px for the sidebar is not going to fit onto a 720px wide container. So I´d suggest starting over. Otherwise if you want people to help you with this you´d have to pay since it´s one helluva lot of work fixing everything.
Henrik BlomgrenMemberThank you for the answer Ben. I was aware of that you need to be drafted to be able to upload stuff to dribble. Quality check of sorts and I´m fine with that. But I do want to be able to show of my work when the ability is given to me.
I did not know you could buy a team account and get upload rights though. I thought uploading was drafting only. So thank you for this info.
Henrik BlomgrenMemberThanks Andrea. It took me a long time to figure out what I wanted to do. Yes I admit that I got a bit of inspiration from Dustin and his introduction to his visitors. But I still coded and did the design work on my own so.
It´s hard not having a favorite color so you try different colors. Sadly I ended up with red this time. But might change that to another color sometime. Since it is my playground 🙂
Henrik BlomgrenMemberThank you Dan. I found that image over at gratisography.com and since I am missing a good image of myself it worked out so well.
Henrik BlomgrenMemberThank you for the feedback.
Yeah. I agree with you that it would be better to have them align in the center. I´ll get right to it and hopefully change it later today.
edit - This is something to be suggested to Studipress to upgrade the Simple Social Icons plugin with. That I am able to give it certain float elements depending on the size of the screen since now all I can choose from are the 3 normal alignments. Which makes it a bit hard to change it to being centered on mobile only.
edit nr 2: It worked out of the box for mobile only. I am amazed at how well coded these plugins and themes are. Starting to like Genesis more and more 🙂
Henrik BlomgrenMemberThanks for writing this comment. If I remember correctly I did not solve the issue but I erased the website and started on a new one where I don´t use disqus so problem is solved I guess.
Henrik BlomgrenMemberHB on Genesis is a nice simple theme that I published just to make things easier to display things. It´s v 1.0 so I will keep changing things up probably and making changes. Making the navigation more mobile friendly is one of those things. Need to work on some Sidr implementation as I really liked that solution to everything.
Front page will probably change in the near future as it didn´t really turn out as my mockup was supposed to be. But at the same time it´s also neat and easy on the eyes so it´s hard to change it.
Thanks for the compliment.
Henrik BlomgrenMemberThanks for the feedback Davinder.
I kinda hate pages that have advertisment below the title. It disrupts my eyes and just destroys most of the designs. I want to read a post about how to make a homepage but all I get is advertisment on how some randomly added google advertisment? Might be good for clicktroughs but man it destroys the reading ability for me.
Middle of the content is much the same. If it disrupts the flow of the text and post content then I am very much displeased with it. After post is done and before comments? thinking about it but from the looks on things I will end up with it being displayed in the footer in a widget above the copyright notice. Just need to find something more to place in another widget at the footer widget beside it XD
Henrik BlomgrenMemberAHA so that´s why when using rewrite and not having a single-cpt.php it turns out to call a 404. Then I understand.
And yes, when I look at it indeed it´s the taxonomy support and not creating the CPT. I must have been extremely tired when copying that snippet of code. My bad. I´ll change the code and write a single-portfolio.php and if that doesn´t work i´ll come back.
Thanks for the help Brad!
Henrik BlomgrenMemberIf I copy the creation of the portfolio custom post type with
//* Create Portfolio Type custom taxonomy add_action( 'init', 'executive_type_taxonomy' ); function executive_type_taxonomy() { register_taxonomy( 'portfolio-type', 'portfolio', array( 'labels' => array( 'name' => _x( 'Types', 'taxonomy general name', 'executive' ), 'add_new_item' => __( 'Add New Portfolio Type', 'executive' ), 'new_item_name' => __( 'New Portfolio Type', 'executive' ), ), 'exclude_from_search' => true, 'has_archive' => true, 'hierarchical' => true, 'rewrite' => array( 'slug' => 'portfolio-type', 'with_front' => false ), 'show_ui' => true, 'show_tagcloud' => false, ) ); }
And then when I create posts from this CPT I get a 404 when I try to view the single CPT type portfolio. Why is this?
January 6, 2014 at 2:23 pm in reply to: how to change the content width of genesis sample theme? #83642Henrik BlomgrenMemberOne way is to choose a different layout from the Genesis settings under the area "Default Layout". If you have chosen to have all posts as full width then they are 1140px wide which is a bit wide yes. If you choose a layout that has content and sidebar then this width shrinks down to 740px which is wide but with a higher font-size it becomes readable.
Otherwise you can pump up your favorite CSS editor and look for
.content { float: right; width: 740px; }
in the style.css and change the width to whatever you feel is right for your site.
Hope this helps.
January 6, 2014 at 2:13 pm in reply to: How to add custom post type different styling on single posts? #83640Henrik BlomgrenMemberHello Brad, thanks for answering.
I´m not using any theme since I´m creating my own child theme since there really wasn´t one theme that had all the functions and looked the way I wanted it to so I only got the Genesis framework and then started on a own child theme.
You can see how far I´ve gotten here: http://demo.henrikblomgren.se
So I wanted to see how far I could get without asking. But using hooks at this degree is hard when it´s the first time you´re doing it. Creating themes and sending people to different template files to display content based on format or category or whatever is easy when doing it normally, but with hooks and Genesis I have no real clue.
Yes I can see what format that the post is by checking in the body class. single-format-aside is the body class for the aside format for example. When it´s an image it outputs single-format-image
So is there any easy way of doing this with Genesis based on the information you have received? What hook/function have I missed for using this?
Thank you once again for the help.
January 6, 2014 at 8:38 am in reply to: How to add custom post type different styling on single posts? #83583Henrik BlomgrenMemberThank you Brad for answering. When I get around adding my portfolio custom post types I will use the info you´ve written now.
It does however not answer my question.
As it is Genesis only have 1 way of displaying single posts regardless of post format. I write standard, video, image and asides on my personal blog. When people visit let´s say the link I mentioned above(http://henrikblomgren.se/dagens-bild-iris-heart/) I have styled it as such that the single view of the post format "image" does not have a fetured image shown at the top. Genesis on the other hand if I place code to display the featured image on single posts will always show a featured image, regardless of if the post format is a standard, aside, video or image.
My question was: Is it possible to make Genesis load a different template file for displaying how different post formats look when viewing them at the single post view?
If you take notice on how this link looks: http://henrikblomgren.se/wordpress-3-8-parker-ute-nu/ this is a post of the post format "aside". As you see it does not show a post title or featured image. This is thanks to me loading a special template file called content-aside which describes how a post being in the post format "aside" should look.
I want this functionality in Genesis. Is this possible or is it impossible to have the single.php load different templates depending on what the post format is?
I noticed I posted this as "custom post type" in the title of this topic. I beg for your forgivness as it should have said "post format" and not "custom post type". I will post another subject of the featured image as your code is not what I´m looking for.
Henrik BlomgrenMemberWell... it is kinda hard to change that since images placed into the post will be placed under the .entry-content class. Which has a padding of 4rem on each side.
So... I do think you can do it with a little bit of css magic. Does it work to your liking if you type this in your css file?
.single .entry-content img { max-width: 111.6%; margin: 0 -4rem; }
this should? work to what you want it to. Otherwise I do not know any easy way of doing it. And from the looks on things the other image has the image below the content and it is not a piece of the .entry-content class. Which makes it a lot easier to work with.
Henrik BlomgrenMemberYou could try adding some CSS to it. Let´s say that you have your content inside a tag called .entry-content as most genesis themes use. Then do add some lines between the entry content and the stuff below you can add in the css
.single .entry-content { padding-bottom: 4rem; border-bottom: 1px solid #ccc; }
This will create a bit of area below the entry content tag and then place a 1px solid colored border the whole width.
Otherwise you can style the <hr> tag but that is something I haven´t done on my own so I do not know how one do this.
Henrik BlomgrenMemberIf I had enough money I would think of the theme pro package as a sound investment as Studio Press is making a lot of nice themes.
I can see some interesting parts about Genesis and using hooks. But it makes it a bit complicated to change things as I want it. From the look on things I will have to do a mix up of Genesis hooks and my old knowledge(mixing in get_the_template_part(content...) for making Genesis support the variations of post format that I have and the way I want to style them.
But I will learn. It would make me a bit more interesting on my resume to have "Genesis framework" as one of my abilities 🙂
Thanks for your time. Have a good evening!
Henrik BlomgrenMemberThanks for the custom archive page. The whole hooks thing is pretty new to me. I´m used to making templates instead so it´s a fresh experience. But then i understand it a bit better since you basically told genesis to remove all type of content from the page and then called a function that is basically the code that I used to display all posts and such. Coolers!
"faults" was a badly chosen word. For this I say I´m sorry. It works splendid if you have the files which I do not. I should have typed it out as that instead. So indeed you are correct.
My google fu is very rusty so therefore I asked. Since google doesn´t concern itself with genesis versions and whatnot. And I´d love to have it as easy as possible. Which sometime can be a bit to much when looking trough google.
I´ll probably get back to you with a question about the sidr functionality you showed if I want to use it on the header navigation. I´ll look at it a bit on my own first but if I can´t get it to work I´ll ask.
Thank you so much for the help and the links!
Henrik BlomgrenMemberWhen you add a new featured image size it will as you noticed only work on newly uploaded images. For the old images one solution is to re-upload them all.
Or as there most often are there exists a plugin that does just this for you, regenerates the thumbnail images to contain all of the sizes that you have in your media settings and for those sizes that you have set in the functions.php file
You can find it here: http://wordpress.org/plugins/regenerate-thumbnails/. I´m using this whenever I change image sizes for the local themes I develop or when I change themes to get all thumbnails to be as I want them to.
-
AuthorPosts