ejm
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to change header opacity on a specific pageOkay. I’ve now looked at Tyler Moore’s section on creating a contact page. https://www.youtube.com/watch?v=sd0grLQ4voU
You should be able to follow his instructions for making a contact page within your child of Tesseract theme. If you have more questions about how to do that, you can comment on Tyler Moore’s YouTube video. It seems not unlikely that he will be able to answer your question because he knows exactly how his theme works.
Did you see this?
http://support.tyler.com/customer/portal/articles/2021405-change-theme-header-and-footer-colors-Forum: Fixing WordPress
In reply to: How to change header opacity on a specific pageIf you want to change the opacity for just one page, I think you will have to create a special contact page. If I were you, I would start by making a tesseract child theme and making any changes you want in your child folder.
Create a folder and call it “mytesseractchild”.
Type the following in to a simple text editor (notepad) and save it as “style.css”.
/* Theme Name: Tesseract Child Theme URI: http://yoursiteURL Description: Tesseract Child Theme Author: You and Tyler Moore Author URI: Your URL Template: Tesseract Version: 1.0.0 License: GNU General Public License v2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Text Domain: tesseract Tesseract was created by Tyler Moore (http://tyler.com/) and is based on Underscores http://underscores.me/, (C) 2012-2014 Automattic, Inc. */Type the following into a simple text editor (notepad) and save it as “functions.php”.
<?php /*...................... enqueue the child theme style.css file with parent's style.css to ensure that your child's style takes precedence .......................*/ function child_theme_enqueue_styles() { $parent_style = 'parent-style'; wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' ); wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css', array( $parent_style )); } add_action( 'wp_enqueue_scripts', 'child_theme_enqueue_styles' ); ?>Make sure there are ZERO spaces before the opening “
<?php” and after the closing “?>“.Put “functions.php” and “style.css” into the new folder and upload them to your wordpress theme folder. Activate the child theme.
Now, it’s safe to start making changes that won’t be lost every time the parent theme is upgraded.
I took a peek at Tyler Moore’s https://www.youtube.com/watch?v=sd0grLQ4voU Tesseract theme files and do not see a specific contact page.
So, if you want to have a different opacity for the header on your contact page, I think you will have to create a specific contact page. (More on that in a separate reply….)
For more information about child themes, please see:
https://codex.wordpress.org/Child_Themes
http://wordpress.stackexchange.com/questions/195591/how-to-create-child-theme-with-tesseract-themeForum: Fixing WordPress
In reply to: Should private posts show on the /blog page?Here’s what the WordPress codex says:
https://codex.wordpress.org/Content_Visibility
Private Content
Private content is published only for your eyes, or the eyes of only those with authorization permission levels to see private content. Normal users and visitors will not be aware of private content. It will not appear in the article lists. If a visitor were to guess the URL for your private post, they would still not be able to see your content. You will only see the private content when you are logged into your WordPress blogSo. If you are logged in and you have permission to see the private posts, they will appear. There will be preface of “Private:” before each private post title.
If you are not logged in or you do NOT have permission to see the private posts, they do not appear on the blog.
(I just tested this with my own wordpress.)
It’s my feeling that if your private posts are not showing up when you are logged in, then something is incorrect in the settings.
Forum: Fixing WordPress
In reply to: Help to display imagesYou’re most welcome. Do report back. 🙂
Forum: Fixing WordPress
In reply to: Help to display imagesI confess that I haven’t tried it, but it looks like the Easy Fancy Box plugin has a popup links option. I’m assuming that it can be used in conjunction with WP’s built-in gallery.
https://wordpress.org/plugins/easy-fancybox/
https://codex.wordpress.org/The_WordPress_Gallery
I hope that helps!
Forum: Fixing WordPress
In reply to: No matter what, couldn't make it work :(Yes, because you have so many style plugins installed, it was really difficult to discover which plugin was creating which id or class.
Personally, I’d be a bit wary of using plugins for this. And it’s only because plugins can sometimes become unsupported over time so that they suddenly stop working. (This has happened to me on a couple of occasions.)
If I were you, I’d be inclined to put the styles into your child’s style sheet directly, rather than have the plugin do it. I’m not positive, but it could well be that your site will load faster if it only has to look at one stylesheet (or two if it’s a parent/child situation) rather than several.
That way, your divs could have only one class rather than several.
I hope that made sense!
Forum: Fixing WordPress
In reply to: No matter what, couldn't make it work :(Even though you are making so many changes to the styles by using plugins, I think that if I were you, I would be inclined to create a child theme to get the navvbar to be fixed.
To create your child, your css file must start with something like this. The “template” part is essential.
/* Theme Name: your theme name Theme URI: your website Description: child theme of twentythirteen Author: you and/or WP:twentythirteen Author URI: optional website address Version: 1.0.0 Template: twentythirteen */Note that the name beside “Template” must be exact. If you activate your child theme, you’ll see a note that the parent is twentythirteen.
Also, create a functions.php file (open a text editor like notepad) and copy and paste the following into it:
<?php /*............... replace import of parent's style on style.css ...............*/ add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' ); function theme_enqueue_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css', array('parent-style') ); } ?>Make sure there are zero spaces or line breaks before the first
<?phpand the last?>.Save the file as functions.php and put it in your theme’s folder.
Most cosmetic changes can be made in the css…. Consult the parent css file to find the ids and classes. You only have to change the ids or classes that you want changed (ie: you don’t have to include the whole of the parent css file)
Now, in your child css file, below “Template: twentythirteen”, put the following (I’m not absolutely positive that this will work because of all the plugins you have installed)
#navvbar { position:fixed; top: 2px; /* this number can be changed*/ }The 2px is just an arbitrary number that I threw in to make sure it worked on the test version of a vague mockup of your page I made.
For more on this, please see the following:
http://cssreset.com/creating-fixed-headers-with-css/
http://www.w3schools.com/css/css_positioning.aspThese are also very useful:
http://www.wpbeginner.com/beginners-guide/wordpress-child-theme-pros-cons/
http://www.wpbeginner.com/glossary/parent-theme/
https://codex.wordpress.org/Child_ThemesForum: Fixing WordPress
In reply to: You Tube EmbeddingI don’t think you have to install Jetpack….
As others have said, get the embed code of the YouTube video. Here is an example of one at 560×315
<iframe width="560" height="315" src="https://www.youtube.com/embed/O4THpbKZ0Zg" frameborder="0" allowfullscreen></iframe>Let’s say you want it to be only 400 wide…. Here is how I fix the YouTube embed coding to embed videos with a width of 400px into my WP posts using object:
560 divided by 400 = 1.4
315 divided by 1.4 = 225<table id="video"><tr><td> <a href="https://www.youtube.com/watch?v=O4THpbKZ0Zg" title="YouTube: How To Embed A YouTube Video In WordPress">YouTube: How To Embed A YouTube Video In WordPress</a> <object data="https://www.youtube.com/embed/O4THpbKZ0Zg" title="How To Embed A YouTube Video In WordPress" width="400" height="225" allowscriptaccess="always" allowfullscreen="true"> <param name="movie" value="https://www.youtube.com/embed/O4THpbKZ0Zg" /><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><br />Slow load or no load? Please go directly to the <a href="https://www.youtube.com/watch?v=O4THpbKZ0Zg" title="YouTube: How To Embed A YouTube Video In WordPress">video</a></object> </td></tr></table>You don’t have to house the video in a table. I just like to so that I can include the link, just in case….
Forum: Fixing WordPress
In reply to: No matter what, couldn't make it work :(I’m not exactly sure how this plugin works, but looking at your source code, it appears that the logo is housed inside the div with
class="wpb_rapper".Try putting .wpb_rapper into the box (note the preceding dot to indicate that it’s a class rather than an id.
If that doesn’t work, you might try asking in the plugin’s support forum:
https://wordpress.org/support/plugin/sticky-menu-or-anything-on-scrollForum: Fixing WordPress
In reply to: add title specs to prev-next links in a child's functions.phpEven though the final part of my question has not been answered, I’ll mark this thread as being resolved.
Thank you again, alcymyth.
Forum: Fixing WordPress
In reply to: When to change Parent or ChildI’m not sure exactly what it is you’re trying to do.
For the most part, you make changes in your child’s css file.
Your css file must start with something like this. The “template” part is essential.
/* Theme Name: your theme name Theme URI: your WP website Description: child theme of the parent you've chosen Author: you and the parent author Author URI: otional website address Version: 1.0.0 Template: exact name of the parent (use copy and paste) */Also, create a functions.php file (open a text editor like notepad) and copy and paste the following into it:
<?php /*............... replace import of parent's style on style.css ...............*/ add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' ); function theme_enqueue_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css', array('parent-style') ); } ?>Make sure there are zero spaces or line breaks before the first <?php and the last ?>.
Save the file as functions.php and put it in your theme’s folder.
Most cosmetic changes can be made in the css…. Consult the parent css file to find the ids and classes. You only have to change the ids or classes that you want changed (ie: you don’t have to include the whole of the parent css file)
I hope that made sense! If not, have you seen this? It’s very handy.
http://www.wpbeginner.com/wp-themes/how-to-create-a-wordpress-child-theme-video/Forum: Fixing WordPress
In reply to: add title specs to prev-next links in a child's functions.phpAs useless as the title attribute is for some, my reason for wanting it is simply because I like having a title.
Thank you for answering the question anyway, alcymyth, in spite of your view that it is a pointless exercise.
For anyone else foolish enough to want the title attribute, here is the page with explanation of the parenthetical
false,'',falseandfalse,'',trueafter get_adjacent_post:https://codex.wordpress.org/Function_Reference/get_adjacent_post
One last question: If I want to add the date rather than the post title, the following does work. BUT the format is not in the same format as I have chosen in the WP settings.
$link = str_replace('<a ', '<a title="next post ( '.get_adjacent_post(false,'',false)->post_date.')"', $link);In my previous theme that I encoded by staring at the WP codex, I had the following (to exclude category 7):
next_post_link('%link', '<span class="nav-next" title="next post: \'%title\' on %date"> %title <b class="meta-nav">→</b></span>', FALSE, '7');}Using that, the date shown in the title spec was in the same format as in my WP settings. Is there a way to achieve that with get-adjacent_post?
Thank you once again.
Forum: Fixing WordPress
In reply to: Blog imagesTry resizing a larger version of your image to 560×315 – outside of WordPress. If you don’t have an image editor, you can use this free online one:
https://pixlr.com/editor/(Or you can use an image editor on your computer. Irfanview is really great little (free) image editor: http://www.irfanview.com/)
Upload the 560×315 version to your WP media area and then add it to your post at full size. Use the dropdown list box for size and choose “full size”.
For more information, take a look at this handy tutorial:
https://en.support.wordpress.com/links/image-links/Forum: Fixing WordPress
In reply to: frustrations with child functions fileI have moved my next question about adding title specs to the previous and next post links back to the initial thread I started on it:
with thanks to alcymyth for an answer to a similar question 4 years ago. (It really helps to have the right keywords for the search!)
Forum: Fixing WordPress
In reply to: add title specs to prev-next links in a child's functions.phpExcuse me for trying to answer my own question
After seeing alcymyth’s response in this thread,
https://wordpress.org/support/topic/how-to-change-the-text-output-of-previous_post_link?replies=11#post-1823033 , I have come up with the following.It’s close, but not quite right. It returns a title spec of “$title” instead of the actual title of the post.
/*............... add title specs to prev and next post links ...............*/ add_filter('previous_post_link','add_titlespec_to_previous_post_link'); function add_titlespec_to_previous_post_link($link) { $link = str_replace('<a ', '<a title="$title" ', $link); return $link; } add_filter('next_post_link','add_titlespec_to_next_post_link'); function add_titlespec_to_next_post_link($link) { $link = str_replace('<a ', '<a title="$title" ', $link); return $link; }How do I fix this?
edit: Somehow I need to encorporate this (I think). But how?
$string = '<a href="' . get_permalink( $post ) . '" title=".$title.' rel="'.$rel.'">';I tried
$link = str_replace('<a ', '<a title="'.$title.'" ', $link);but it threw up a blank page.