Forum Replies Created
-
AuthorPosts
-
PorterParticipant
One last try, still looking for help on this. Give me something to do this weekend!
PorterParticipantThanks a lot, Kelly. That template at the bottom gave me enough to work with. It was essentially what I was doing before when I used the after content hook, but with a more suited hook, and with the removal of various items that weren't needed.
I now get that I can use this setup to keep the breadcrumbs / have a full page width design:
<?php /** * Template Name: Bars Page Template * Description: Used for pages of the "Bars" location type. */ //* Force full width content add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' ); //* Remove Post Info remove_action( 'genesis_entry_header', 'genesis_post_info', 12 ); //* Remove Post Meta remove_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_open', 5 ); remove_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_close', 15 ); remove_action( 'genesis_entry_footer', 'genesis_post_meta' ); //* Display custom fields above entry content add_action( 'genesis_entry_content', 'custom_do_post_content', 9 ); function custom_do_post_content() { the_field("bar_summary"); //More code here } genesis();
Or I can not use a hook (or use a non-content hook) and then individually style areas with css as I did with my widgetized home page. That should definitely be enough to get me started, and hopefully finished. This weekend should be fun 😀 Thanks again, Brad / Kelly.
PorterParticipantThanks for the answer, Brad. I tried to follow what was going on in that tutorial, but ended up with a mess. Here's what I have:
<?php /** * Template Name: Bars Page Template * Description: Used for pages of the "Bars" location type. */ // Force full width page layout add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' ); // Add custom body class to the head add_filter( 'body_class', 'add_body_class' ); function add_body_class( $classes ) { $classes[] = 'site-container site-inner content entry-content'; return $classes; } the_field("bar_summary"); genesis();
I'm shooting blindly as to which classes I need to add to the $classes array, but I figured they would be the classes I see when I inspect the page design I'm trying to make, which is why I used those. For whatever reason, that gave me non-full width page, with a right align, that was all sorts of broken.
Earlier I played with the code a bit, and tried this:
<?php /** * Template Name: Bars Page Template * Description: Used for pages of the "Bars" location type. */ add_action( 'genesis_before_entry_content', 'homepge_content' ); function homepge_content() { ?> <div class="one-third first"> Lorem ipsum dolor sam.....</div> <div class="one-third"> Lorem ipsum dolor sit amet......</div> <div class="one-third"> Lorem ipsum dolor sit amet......</div> <?php } genesis();
That gave me the header and footer via the genesis() call, and my content area was there with the breadcrumbs up top, which I assume is from the default loop. This is essentially what I want, though the approach is far different from yours, and I'm far less experienced and assume there's a fault with it. The other minor setback to this, is that I have one giant "chunk" of a piece (the content area), where as I might want to go with a design like I did on my home page (combinations of two-thirds and one-third areas).
As I said, I'm just a bit lost as to what else is needed in your approach to properly achieve what my approach does - mostly pertaining to the classes array, but probably a few other tweaks as well.
PorterParticipantPorterParticipantA few guesses:
Was this site live before? If so, it'll take awhile for Google to ignore the pages it already has indexed.
Search engines don't HAVE to pay attention to the no-follow, did you get any decent traffic to those pages, which might have had Google ignore the no-follow?
In your.htaccess file, is the no-follow shown? "Disallow user agents", or something along those lines.
PorterParticipantPorterParticipantI ended up making some blind guesses, and everything is working perfect now. Here's my config:
server { listen 80 default_server; listen [::]:80 default_server ipv6only=on; root /var/www/anightinburlington.com/public_html; index index.php index.html index.htm; server_name anightinburlington.com www.anightinburlington.com; location / { # try_files $uri $uri/ =404; try_files $uri $uri/ /wordpress$uri/ /index.php?q=$uri&$args; } location ~ \.php$ { try_files $uri =404; fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php; include fastcgi_params; } error_page 404 /404.html; # redirect server error pages to the static page /50x.html # error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/share/nginx/html; } }
I changed the root back to /var/www/anightinburlington.com/public_html;
Then added the "wordpress" bit below:try_files $uri $uri/ /wordpress$uri/ /index.php?q=$uri&$args;
Everything appears to work 100%, but if anyone could tell me if there's something wrong, that would be great, as I'm basically shooting in the dark (with slightly educated guesses, emphasis on slightly).
PorterParticipantThanks for your response. I was having issues with W3 total cache, and disabled it, but my wp-config file still had cache turned on (as I w3 didn't have access to the files from messed up security settings). I manually removed w3 total cache, and all related cache data, and it's now fixed.
I still don't know why my current LEMP setup doesn't work with W3, and perhaps it's because I simply moved it over, rather than starting from scratch. I'll attempt to install it now that everything is clean, and hopefully it'll work. Last time, it said it couldn't write, and needed my ftp credentials, but it wouldn't accept what I thought would work. I'm loving VPS thus far, but it's taking some serious learning / getting used to 😀
PorterParticipantYeah, I've used Host Gator for about 5 years now, but as time goes on, they seem to perform worse. I've had far more downtime in the last year than ever before, issues like this never existed before, and as I educate myself on other solutions, they don't seem so great. It seems that ever since EIG took over, they went downhill.
Do you have any recommendations for shared hosting in the $10 / month price range? I've been looking at Digital Ocean, as I've heard good things, but I'm not sure how their similarly priced plan compares to what I'm used to with Host Gator - the Cloud based hosting vs generic shared hosting loses me a bit, as I haven't read up on it too much yet. I've also been eyeing NameCheap, as I use them as a domain register, but people keep telling me that they can't be good, due to their new entry to the market / expertise in being a register, not a hosting provider. I've been warned about mixing domain registration with hosting. Those warnings aside, they look viable, but who knows.
PorterParticipantI'll definitely report back with whatever I find.
I'm starting to think that HostGator is throttling me / throwing that site on a packed / crappy server since it gets no traffic. The site is under development, and robots.txt discourages search engines / bots, etc, so perhaps they know that, and aren't giving me the resources I would expect once live. I obviously can't prove this, but from a business perspective, it makes sense that they'd track this data and do so.
PorterParticipantFrom what I saw, it was a perfect clone, with all URL's switched to the new domain. I used the Duplicator plugin, which has worked great for copying a site from a development setup to a live setup.
Also, the issue existed before cloning - I cloned the website specifically to test the server response time / load speeds.
PorterParticipantThe name servers are the same, and they're both within the same account.
I spoke with live chat support earlier, but they were unable to help me. They put in a support ticket on my behalf, and I'm waiting for a higher up to respond.
PorterParticipantAugust 29, 2014 at 2:17 pm in reply to: Beautiful Theme – Removing the logo area but keeping navigation #121741PorterParticipantAre you editing your files directly within WordPress? I highly recommend you edit them with an editor, and upload via FTP. An example of a great free editor (which uses numbering) is Notepad++.
PorterParticipantNevermind, found what I was looking for in the hooks reference.
For those interested:
//* Reposition the breadcrumbs remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' ); add_action( 'genesis_before_entry_content', 'genesis_do_breadcrumbs' );
PorterParticipantMy best advice, spend a couple of hours with a "backup" simply steaking the style.css. Read it over a bit, and you'll slowly but surely know you're way around.
In your case, you need to locate:
.site-inner, .wrap { margin: 0px auto; max-width: 1200px; }
max-width:1200 is what needs to be changed. There are other parts that equal this, such as sidebar, widget area, content, etc, so make sure that if you change the 1200, you adjust the other areas. Additionally, at the very bottom of your style.css, you'll see "media queries", adjust those sizes as well.
To find the size of parts of your website, try using this awesome tool - http://www.westciv.com/xray/
Right click > inspect, is also your friend.
PorterParticipantI like it, looks great - especially the slanted design up top.
The only things I would change, are to make the Headers stand out a bit more, and to change the color of the "site by" link in the footer.
PorterParticipantAlright, that's what I figured. Thanks for all of the info, and the level up on my css knowledge 😀
PorterParticipantThanks for the explanation, makes sense.
In the case of my body code, I have this in my inspector:
body { background: url('images/background-main.jpg'); color: #d8d8c0; font-family: Muli, sans-serif; font-size: 20px; font-weight: 300; line-height: 1.625; margin: 0; padding-top: 84px; }
Half of that css has a line through it (not being applied to the page, I assume), but properties such as font-weight ARE being applied. This is intended, as the rest of my entire website uses everything contained in body, but on my front page, properties such as line-height interfere, and as you saw, I need to customize and set properties to 0, or none.
I tried simply adding an empy .home class (in hopes it would simply override everything), but that didn't work. I also tried the same, with body.home. It's really not a big deal, as I can customize the 5 or so widget areas each with a class, but for the sake of logic, I'm curious to know if there is a proper way to ignore everything in body, just on my home page.
PorterParticipantAwesome, that did the trick! I'm still not entirely sure how having logic with more than one class works, is it specific to only when those classes are used together, or would an either class use the logic if present? I should read up on that, as it's pretty basic.
That fix definitely works, but I'm still slightly concerned that other elements of my home page are "battling" against the basic .body css. I can definitely create custom code like above, but is there a way so that .body is never even used, just on my home page? It's entirely widgetized, aside from the header and footer, if that helps.
Either way, thanks for the quick answer to my main issue, much appreciated 🙂
-
AuthorPosts