Forum Replies Created
-
AuthorPosts
-
coralseait
MemberAs to the icons, it uses a combination of Font Awesome and Custom. FA is the preference, as there's so many and they keep adding them, but it can be a custom one. WP auto generates the Icon, and based on a set of ACF options you can include background circle / colour or not. The colours are based on the the TRC logo, so blue, then red, then green (Org, Role, User).
There's a myriad of options when you set up what we call 'Intranet Item' - and the admins can pick and chose what to do (FA, or Custom, Background or Not, Tech Owner and Business owner of Item - this allows users to email questions about app / item to domain experts right from intranet).
It also supports things like auto message on Wed (which is Patch Tuesday for Microsoft) to leave computers on to receive patches from WSUS (or whatever it is called now).
There's a whole heap of features I can't really document, but I can say Genesis was and is a HUGE part in all this and it probably couldn't have happened without it.
coralseait
MemberCloudFlare will also do it, if you don't want the plugin path.
Though generally, it's just not worth it to try; using a general email address to a gmail account is pretty darn good. Their filtering is excellent. Something like [email protected] often works really well.
coralseait
MemberYou should really use a tool like MailChimp; sending bulk directly from your site without properly setting up SPF / DKIM and adhering to strict mass emailing best practices is a sure way to have your site black listed / flagged as a spamming domain.
coralseait
Membercoralseait
MemberThat seems to more indicate something is now wrong with htaccess or your virtual hosts config ... the 404 is the http server returning a response of not found. I'd expect a database connection error if there we're something wrong with the db settings per the db rename.
Can you visit the site's root url ok?
If you renamed the site / domain / url -- there's a bit more to do than just rename db and repoint the db.
Also, if you post what guide or guides you followed we can better tell.
coralseait
MemberJust to be clear, are you saying you renamed the actual MySQL db and pointed the site to in wp-config?
Or are you saying you changed the site URL / Domain ? or Both?
coralseait
Membervisit gtmetrix, pingdom tools, or wep page speed test (or any others) -- all of them show the site performs really poorly from the host perspective. You can see in the waterfalls a lot of wait time.
TTFB - Time to First Byte and Time to Full Render are pretty poor as well.
No amount of image tuning is going to fix the problem, perhaps there's something up with your dreamhost instance or the wp install.
coralseait
MemberWho is your host? The site responds very slowly from a hosting perspective, you may do well to move to a much better host.
coralseait
MemberFor yoast, you have to enable meta tags:
Dashboard --> SEO --> Titles & Metas --> Other Tab
This will add the interface / area to input them. Then you add your tags depending on the type of content. Again, Dashboard --> SEO --> Titles & Metas ; each sub tab will now have a place for Meta Keywords Template
You can set them for Post Types, Archives, etc AND/OR in the Yoast meta box on a per page / post basis.
coralseait
MemberIt'll be in a few possible files depending on your child theme. Basically anything in the template hierarchy or custom templates. For example, many of the child themes have a front-page.php and page-landing.php. If you make your own templates, it'll be the last line in the php file.
coralseait
MemberThis means you have a php syntax error; you'll need to correct whichever file you were editing. Likely through cPanel editor or FTP.
There may be an error log depending on your host telling you which file and line is causing the problem.
March 2, 2016 at 7:06 pm in reply to: (Digital Pro) why social media icon in the footer does not appear #180489coralseait
MemberWe've seen this quite a few times; usually there's a cross site scripting error for some reason in the browser dev tools / console log. Haven't really been able to solve it long term, because the error is misleading. So we've switched to Font Awesome for social icons.
See http://www.studiopress.community/topic/facebook-linking-issues/#post-153001
coralseait
MemberYou'll want to then look into either:
a) hooks and filters to mod the output via some code in functions.php
or
b) template hierarchy to build your own template for the tag / category which includes the content you need. You can also use a custom template which is somewhat similar but uses the drop down in the editor to select the template the page uses.
Generally, I'm more of a fan of using the template hierarchy as this keeps functions.php cleaner and encapsulates all your display and logic for a given 'feature' and keeps less settings in the editor which users could change (although you can mask it) accidentally.
February 28, 2016 at 4:34 pm in reply to: Nested repeater fields(ACF) not displaying like a table, why not? #180182coralseait
MemberHere you go; note this is NOT exactly written to be efficient or production code, but as teaching aid so you may learn how ACF works in the guts and unlocking its full potential.
/*** Nested Repeater Testing ***/ // The purpose of this is to illustrate how to retrieve, manipulate and // display somewhat more complex ACF structures. ACF is very powerful // and a key to unlocking this is understanding how ACF stores and returns // data // Note, we wouldn't necessarily write like this for production, but it is // split up here to make clear what's going on and to really keep HTML vs code // clear // assumptions: // ACF field group // ACF field: test_outer_repeater | repeater <-- this is your 'main repeater' // ACF repeater sub field: test_item | text // ACF repeater sub field: test_inner_repeater | repeater <-- this is your nested repeater // ACF Field: test_inner_repeater | repeater // ACF repeater sub field: test_title | text // ACF repeater sub field: test_cost | number // The output below will create a table for the outer repeater // and nest the inner repeater in a table of it's own // you can output however you like, but if you create the field // group as above and use the below it should be clear how // everything works - then you can mod display as you like // Begin HTML Markup for outer repeater table echo '<table>'; echo '<thead>'; echo '<tr>'; echo '<th>test_item</th>'; echo '<th>test_inner_repeater</th>'; echo '</tr>'; echo '</thead>'; echo '<tbody>'; // First we get the outer repeater field $outer_repeater = get_field('test_outer_repeater'); // This will display the array that ACF returns for the entire outer repeater // ACF returns the whole repeater as an array of arrays /* echo '<pre>'; var_dump( $outer_repeater); echo '</pre>'; */ // Here we iterate through every "row" in the outer repeater // Basically ACF is returning an Array of Arrays (which may even contain Arrays themselves) // Understanding this is key to using ACF effectively and allows very complex solutions foreach( $outer_repeater as $outer_repeater_item) { // This will display the arrays that ACF returns for each "row" of the outer repeater // This way you can see what your array keys and values are for debugging /* echo '<pre>'; var_dump( $outer_repeater_item); echo '</pre>'; */ // This is a sub field in the outer repeater called test_item // Notice how we access it via the outer repeater row array and key $outer_repeater_sub_field = $outer_repeater_item['test_item']; // Here we are now accessing the inner repeater sub field, notice ACF returns it as an // array so we use the name of the inner repeater as the array key $inner_repeater = $outer_repeater_item['test_inner_repeater']; // Begin HTML row markup for outer repeater echo '<tr>'; echo '<td>' . $outer_repeater_sub_field . '</td>'; // The cell which will contain our nested repeater's nested table markup echo '<td>'; // Now we can iterate through the inner repeater rows // Again, this could come back as an Array of Arrays etc foreach( $inner_repeater as $inner_repeater_item) { // This will display the arrays that ACF returns for each "row" of the inner repeater // This way you can see what your array keys and values are for debugging /* echo '<pre>'; var_dump( $inner_repeater_item); echo '</pre>'; */ // Here the inner repeater has a text field called test_title $inner_repeater_title = $inner_repeater_item['test_title']; // Here the inner repeater has a number field called test cost $inner_repeater_cost = $inner_repeater_item['test_cost']; // Begin HTML markup for inner repeater // Note, you don't have to do a nested table, can do whatever you want // but I've left this a nested table so it is pretty clear what is returned echo '<table>'; echo '<thead>'; echo '<tr>'; echo '<th>test_title</th>'; echo '<th>test_cost</th>'; echo '</tr>'; echo '<tbody>'; echo '<tr>'; // Output inner repeater data cells echo '<td>' . $inner_repeater_title . '</td>'; echo '<td>' . $inner_repeater_cost . '</td>'; // End HTML markup for inner repeater echo '</tr>'; echo '</tbody>'; echo '</table>'; } // End cell contianing the nested repeater echo '</td>'; // End HTML row markup for outer repeater echo '</tr>'; } // End HTML markup for outer repeater echo '</tbody>'; echo '</table>'; /*** End Nested Repeater Testing ***/
February 25, 2016 at 7:06 pm in reply to: Nested repeater fields(ACF) not displaying like a table, why not? #179931coralseait
MemberHello,
This is a bit tough to follow, as I can't watch the video right now ...
But, are you saying you have a repeater in a repeater and you're having trouble accessing its data?
We use ACF quite a bit, and generally stay away from the have_rows, sub_filed type things. ACF returns them back as arrays anyway so using a simple foreach on the repeater, and if necessary another one the sub repeater works great.
In general, you have a key problem on which field the_sub_field is trying to get. If you like I can show you a stub on how do this with foreachs which although at first glance may seem more complex, will help teach you how ACF stores and returns data, and how to manipulate repeaters? Most of the time we are doing are more complex stuff with our repeaters and ACF, so we hardly use the_field, or the_sub_field.
coralseait
MemberI wonder if we should sticky a post about curly quotes, it comes up often enough that'd probably help people -- esp with the prevalence of copy pasta coding these days.
coralseait
MemberOh yes, make sure there's no caching occuring, you may have a server cache that needs flushing as well, not sure
coralseait
MemberTry both wp_dequeue and wp_dergeister with a priority on your action of very high, say 99999
so something like:
// Disable CSS Site-Wide Using CSS Script Handle add_action( 'wp_enqueue_scripts', 'my_dequeue_styles', 99999); function my_dequeue_styles() { wp_dequeue_style( 'dynamik_minified_stylesheet'); wp_deregister_style( 'dynamik_minified_stylesheet'); }
For brevity I just listed a single example of dequeue and deregister in the function, you'd add all of them in it so each script is dequeued and deregistered.
coralseait
MemberHello,
1) Make sure your admin ID is not default (add a new admin, delete the old one, the ID number will not be the same).
2) Use a very secure, entropic password
3) Use two-factor for all accounts which can edit and esp do theme / admin updates
4) iThemes is fantastic
November 29, 2015 at 11:19 pm in reply to: how to make custom post type archive page display full post content? #172248coralseait
MemberAdd this somewhere early in your archive template
//* Use Full Page Rendering add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );
Oops, apologies that's for full width content, you want the entire post to show, correct?
-
AuthorPosts