lexipixel
Forum Replies Created
-
Forum: Plugins
In reply to: [Create Block Theme] Block theme not exporting header and footerAside from being sure to have the same Theme Name / Slug / Text Domain — I’m starting to think some problems I was [and at time still am] experiencing has to do with a need to code add_theme_support() in the theme’s functions.php file.
I was trying to create header and footer template parts with a custom logo and had nothing (in functions.php) to tell WordPress to support it, e.g. –
add_theme_support( 'custom-logo', array( 'height' => 125, 'width' => 500, ) );I also was trying to have a navigation menu in my header and foot, (which always disappeared), so I added —
add_theme_support( 'menus' ); // function lexinews_reg_menus() { register_nav_menus( array( 'navt-menu' => _( 'Top Nav Menu' ), 'navb-menu' => _( 'Bottom Nav Menu') ) ); } add_action( 'init', 'lexinews_reg_menus' ); //I think not having that was causing the FSE to encounter a “Navigation” block and telling me “You do not have permission to edit menu” or “Menu no longer exists” or other messages I was getting from my disappeared menus… (Sorry for not giving better bug report of exact error message or when & why they occurred).
But I could be completely wrong and have no idea if I am going about building a Block Theme correctly — too many moving parts….
Forum: Plugins
In reply to: [Create Block Theme] Block theme not exporting header and footerdoes the new folder name match the theme slug
jordesign (@jordesign)At first yes, then pretty sure it didn’t (after a few rounds of Overwrite, Clone and/or Export in CBT), then unzipping on local machine and at times replacing or deleting some templates or parts — then re-ZIP-ing and uploading to test site…
I’ll try again.
Forum: Plugins
In reply to: [Create Block Theme] Block theme not exporting header and footerI am having the same (or similar) problem. I created a theme named “MyNewsTheme” by –
- first using the “Create Blank Theme”
- adding templates, template parts, creating headers and footers and a navigation menu (named “navt”) that is part of the site’s “Main Header”, (I plan to have multiple headers for different sections, and all will share the same “navt” top navigation drop down menu (the main hamburger menu).
I have tried various combinations to export the theme, (I am developing it on “example.biz” and want to import it to “example.com” when it’s ready for production).
No matter which way I try to export it; e.g. – Just using Export MyNewsTheme or Clone MyNewsTheme, or even first trying Overwrite MyNewsTheme then trying Export or Clone…
I lose the header and footer content. The Template Parts “header” and “footer” are there, but contain a single block named “pattern” that is greyed out in the site editor, and does not display anything on the front end of the site.
I have Gutenberg installed as well as Create Block Theme. I have tried (over several days) to overcome the problem, even doing a clean install, and same problem.
RELATED POSSIBLE: I do notice an error when leaving the Site Editor after making changes to template parts and templates — after clicking “SAVE” in upper right, when I try to back out, I get another “SAVE” button in lower left corner and an alert warning me “Changes you made may not be saved.” if I click “LEAVE”. If I have made several changes, instead of the lower left “SAVE” button I get a “REVIEW # CHANGES” button, with a “SAVE” in the pop-up that has checkboxes to ok the various changes — when I click “SAVE” there it says site updated — but when I try to back out to the Site Editor menu it warns me that changes won’t be saved if I “LEAVE” — I can try to “”REVIEW # CHANGES” / “SAVE” over an over, but the alert persists.
ALSO RELATED POSSIBLE: I see the Site Editor creates multiple versions of a template or template part, (e.g. two instances of “header”, or headers with new names if I create them, etc)… It shows who created each one, or if it’s an original part or template from the theme — but it also loses all the header and footer content in any template or template part and replace it with a blank “pattern”.
Forum: Fixing WordPress
In reply to: Visual Editor Too WideAgreed… I had TinyMCE Advanced installed in earlier WP version, when I upgraded to 2.7 it had the same effect.. get rid of some buttons, or uninstall the plugin will fix.
Forum: Your WordPress
In reply to: a virtual WordPress iPhoneAnother CSS feature of the theme is that the body of the phone is self-centering… the “iphone” stays centered and the WP content is positioned within the centered area… it works down to about 480 pixels wide…(the default size of an iPhone screen).
Relvant CSS code:
body { margin: 0; padding: 0; background: url("/wp-content/themes/iphonesalesinc/bg-phone.jpg") 50% 0 no-repeat; background-color: black; }My idea is to eventually setup another stylesheet for mobile devices so the background (iphone) image isn’t used and the WP content will fit a real iPhone.
Forum: Your WordPress
In reply to: New WordPress Blog – www.CouponscodesPromos.comJust noticed I broke a rule of CSS and used the same ID more than once in a page.. 🙁 still rendered in FF
Forum: Your WordPress
In reply to: New WordPress Blog – www.CouponscodesPromos.comI think what changes the rule on-screen is the DPI and dot pitch of monitors.
Printed on paper, at 200dpi, 300dpi or higher the serif font “little feet” are fairly clear and enhance the readability of the font even at sizes like 8pt.
On a computer screen with a .25 dot pitch and 72dpi to 96dpi, for serif fonts sized under 14px or so, the feet get grainy and cause a dithering effect that bothers the eye.
On the other hand, sans-serif fonts at some sizes have too much counter space, (“counter” is the typographic term for enclosed “holes” as in O, o, a, B, D, P, Q, p, g, etc). The excessive counter space of fonts rendered in light weights, (e.g. font-weight: 500 or less), makes readability worse for a completely different reason.
I believe “making the eye happy” is the goal to readability… not too much contrast, not too grainy, weights and counters not too heavy or light, etc..
11pt Courier was the standard typewriter font for probably 60 years because of it’s readability… but it wasn’t pixel-ized.
Here’s some CSS experiments to compare “readability”.
Opinions of “most readable” may be interesting…
<html> <head> <title>Serif v. Sans-serif</title> <style type="text/css"> div { border: 1px solid black; margin: 6px; padding: 6px; } .contrast0 { background: #fff; color: #000; } .contrast1 { background: #eee; color: #333; } .contrast2 { background: #ccc; color: #666; } .contrast3 { background: #aaa; color: #666; } #st1 { font-family: serif; font-size: 12px; } #st2 { font-family: sans-serif; font-size: 12px; } #st3 { font-family: serif; font-size: 14px; } #st4 { font-family: sans-serif; font-size: 14px; } #st5 { font-family: serif; font-size: 16px; } #st6 { font-family: sans-serif; font-size: 16px; } #st7 { font-family: serif; font-size: 18px; } #st8 { font-family: sans-serif; font-size: 18px; } </style> </head> <body> <div id="st1" class="contrast0">This is a test of the American Broadcasting System.</div> <div id="st2" class="contrast0">This is a test of the American Broadcasting System.</div> <div id="st3" class="contrast0">This is a test of the American Broadcasting System.</div> <div id="st4" class="contrast0">This is a test of the American Broadcasting System.</div> <div id="st5" class="contrast0">This is a test of the American Broadcasting System.</div> <div id="st6" class="contrast0">This is a test of the American Broadcasting System.</div> <div id="st7" class="contrast0">This is a test of the American Broadcasting System.</div> <div id="st8" class="contrast0">This is a test of the American Broadcasting System.</div> <div id="st1" class="contrast1">This is a test of the American Broadcasting System.</div> <div id="st2" class="contrast1">This is a test of the American Broadcasting System.</div> <div id="st3" class="contrast1">This is a test of the American Broadcasting System.</div> <div id="st4" class="contrast1">This is a test of the American Broadcasting System.</div> <div id="st5" class="contrast1">This is a test of the American Broadcasting System.</div> <div id="st6" class="contrast1">This is a test of the American Broadcasting System.</div> <div id="st7" class="contrast1">This is a test of the American Broadcasting System.</div> <div id="st8" class="contrast1">This is a test of the American Broadcasting System.</div> <div id="st1" class="contrast2">This is a test of the American Broadcasting System.</div> <div id="st2" class="contrast2">This is a test of the American Broadcasting System.</div> <div id="st3" class="contrast2">This is a test of the American Broadcasting System.</div> <div id="st4" class="contrast2">This is a test of the American Broadcasting System.</div> <div id="st5" class="contrast2">This is a test of the American Broadcasting System.</div> <div id="st6" class="contrast2">This is a test of the American Broadcasting System.</div> <div id="st7" class="contrast2">This is a test of the American Broadcasting System.</div> <div id="st8" class="contrast2">This is a test of the American Broadcasting System.</div> <div id="st1" class="contrast3">This is a test of the American Broadcasting System.</div> <div id="st2" class="contrast3">This is a test of the American Broadcasting System.</div> <div id="st3" class="contrast3">This is a test of the American Broadcasting System.</div> <div id="st4" class="contrast3">This is a test of the American Broadcasting System.</div> <div id="st5" class="contrast3">This is a test of the American Broadcasting System.</div> <div id="st6" class="contrast3">This is a test of the American Broadcasting System.</div> <div id="st7" class="contrast3">This is a test of the American Broadcasting System.</div> <div id="st8" class="contrast3">This is a test of the American Broadcasting System.</div> </body> </html>Vote early, vote often!
Forum: Your WordPress
In reply to: food site using wp – not a standard templateVery nice layout.
One suggestions: Since you set the precedent of enabling users to click on the image(s) on the home page to read a post, it would be nice if you the images in the category pages also were clickable, (should be as easy as adding the same tag as the title,
<a href="<?php the_permalink() ?>"><img src="/path/to/filename.jpg" border="0" alt="<?php the_title(); ?>" /></a>e.g.- in http://johnonfood.com/sections/how-to/
You can’t click the images — AND I WANTED TO!
Forum: Your WordPress
In reply to: New WordPress Blog – www.CouponscodesPromos.comletter-spacing: -1px; -moshuahhhh! Thanks moshu — I was trying to nail down where that “squeezed” (kerning) effect was coming from. I searched the w3 CSS pages looking for a font property — never though of search for something as generic sounding as “letter spacing”.
My background before the web was in print — so I assumed it woud have been called something like “tracking” or “kerning” and be under Fonts.
Ya’ learn somethin’ new every day!
BTW- that CSS code was left over from the WP “Classic” theme I modified to build the site. It’s gone. It appears the negative spacing was was meant to squish the #menu titles, but was affecting the .storycontent text which was wrapped in <p> tags.
Try changing that font-size to a fixed pixel height and see if you don't notice any difference. -crazytaxiOk, you got it. I changed to a pixel font size. Again, the percentage sizing was something I was trying to follow from the WP Classic (default) theme’s stylesheet I modified. It seems they relied on EM and percents. I normally use fixed width layouts and pixel sized fonts in my (non-WP) site designs.
The one exception I use is the EM on line height, (e.g. line-height:1.2em)… this just makes sense to specify the inter-line spacing in proportion to the font size and not have to recalculate, (e.g.- “line-height:1.5em” can remain in the CSS even if you changed “font-size:11px” to “font-size:13px”… for either, the spacing is still 1.5 times the font’s height)..
Thanks again for the tip off and feedback!
A bit more about the site design…
In addition to the WP 2.6.2 install, I’ve used the following (2) plugins to build the site:
- FeedBurner FeedSmith v.2.3.1 – to setup feeds at Feedburner
- More Fields v.0.6.8 – for the Coupon code box.. will be used for more in the future
I look forward to any more feedback.
Forum: Your WordPress
In reply to: New WordPress Blog – www.CouponscodesPromos.comThanks for the feedback.
I changed the CSS to
.storycontent, .storycontent p { font-family: Verdana, Arial, sans-serif; color: #333; font-weight: 500; font-size: 95%; line-height: 1.2em; }I think that’s more readable.
Let me know. Thanks again.
Forum: Installing WordPress
In reply to: 2.6.2 Theme images and WP logo missing?REPLYING TO MY OWN POST…
Unless you have the same problem, ignore my post.
PROBLEM: Images not appearing after install / update.
SOLUTION: I found my FTP program had fallen back to ASCII transfer mode. The image files needed to be uploaded as BINARY, and when uploaded as ASCII they became corrupted. The fix: upload the files again in BINARY MODE.
Forum: Requests and Feedback
In reply to: Preview POST would be nice…Thanks phaza. I’m new to WP. I did not see the “BIG BUTTON” (that appears after you enter a TITLE) when I opened the blank screen, then when I was finished typing the post, I expected I’d find a PRVIEW button down near the SAVE or PUBLISH buttons (which would make a lot more sense.
It would make more sense to have:
[PREVIEW] [SAVE] [PUBLISH]
all together… anyway, thanks for pointing out my oversight.