Ryan Ray
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Storefront] Fix spacing between Header widgetsHi @antibiz,
Ah got it, thank you for helping clarify and letting us know you’d solved it.
Forum: Themes and Templates
In reply to: [Storefront] Center Custom Logo ResponsiveHi @nowlanjor,
Perhaps this is fixed now, but I also see the same thing that Riaan had seen. Right up to 740px wide I see a centered logo above the mobile hamburger menu.
Link to image: https://cld.wthms.co/5TcBKRI assume you’ve got your own media query/breakpoint there at 740px. Just as an extra FYI, these are the two breakpoints for Storefront by default. It starts out mobile optimized then as screens get wider it changes the CSS depending on these widths.
Link to image: https://cld.wthms.co/KoX4dbForum: Themes and Templates
In reply to: [Storefront] how do i center my page titleHi @brucemacg,
Thanks for the additional info. I’m not sure where that PHP function came from, but it definitely isn’t going to center a page title. It looks like maybe you were going down the route of removing the default title to add in your own?
The URL you sent is asking me for a username and password to authenticate before being able to view it. Are you able to remove that for now? Once I can view the page we’ll figure out what CSS to use to target that page only.
Link to image: https://cld.wthms.co/D8qo9pForum: Themes and Templates
In reply to: [Storefront] Add social icons in header near to searchHi @sibichan,
If your custom link in the menu looks like this.
Link to image: https://cld.wthms.co/55QRvuThen make sure the following CSS is added in some fashion to your site.
.secondary-navigation a[href*="https://wa.me"] { text-indent: -9999px; } .secondary-navigation a[href*="https://wa.me"]:after { text-indent: 0; display: block; float: left; } a[href*="https://wa.me"]:after { font-family: "Font Awesome 5 Brands"; font-weight: 400; } .secondary-navigation a[href*="wa.me/"]:after { content: "\f232"; color: #cb2027; }Among my other social icons, it looks like this.
Link to image: https://cld.wthms.co/Hx3u9xYou can follow the same process for WeChat, but of course change the base URL and content used for the WeChat icon.
Forum: Themes and Templates
In reply to: [Storefront] Woocommerce product dataHi @chatochichos,
I’m not sure I 100% follow what you are stuck on here, I apologize. It seems you are trying to get the images from product via the REST API?
Here were the docs for product images via the REST API, I hope that’s helpful and on the right track. –> https://woocommerce.github.io/woocommerce-rest-api-docs/#product-images-properties
Forum: Themes and Templates
In reply to: [Storefront] Logo biggerHi @alexwish,
I think you are saying you had adjusted something in the footer and when doing that it made your logo smaller than you wanted?
If that’s correct, could you please share what you’d done in the footer first? Or at least what you were wanting to do in the footer. That’ll help us see then why it effected the logo size.
Hi @idekh,
One additional, and more complete way IMO, would be to remove the code itself via an action. Add this to a code snippets plugin, or a child themes functions.php file.
remove_action(storefront_footer, storefront_credit,20);The CSS works fine as well, my only complaint is that it still loads the footer credit and then simply hides it. The above snippet removes the footer credit entirely.
Thanks!
Forum: Themes and Templates
In reply to: [Storefront] Get site title and taglineIgnore my answer, thread already answered.
- This reply was modified 7 years ago by Ryan Ray.
Hi @taisho,
This would be great as an issue added to the repo for Storefront on GitHub. Are you willing and able to create that there for us?
https://github.com/woocommerce/storefront/issues
Thanks!
Forum: Themes and Templates
In reply to: [Storefront] how i can reset storefrontHi @clerick84,
As @antibiz said, with the latest version of Storefront, WooCommerce, and WordPress we’re using the block editor to create the storefront homepage. I’d follow the section of our docs here on what specific blocks to add to a page to recreate the previous Storefront homepage. But with this all being powered by blocks you can customize it to be your own.
https://docs.woocommerce.com/document/installation-configuration/#section-11
Hopefully that helps you build a new Front page that is easily customized with the block editor. 🙂
Forum: Themes and Templates
In reply to: [Storefront] Warninng on all posts and pagesHi @shinchaya,
This is the support forum for our Storefront theme from WooCommerce. 🙂
Would you first mind sharing your system status here with us? You can find it via WooCommerce > Status.
Select “Get system report” and then “Copy for support”. Once you’ve done that, you can paste it here. This will give us some helpful information to try and pull out some clues as to what might be giving you this error.Forum: Themes and Templates
In reply to: [Storefront] Customize Header/Navigation without pluginsHi @d3venthusiastic,
As you’ve noted to get this level of control over the layout it doesn’t exist in plugin form. For your desired layout you might be able to do it with CSS only. Depends on the exact markup of the header.
If it makes the CSS styling easier, you could create a child theme and code your own header. I do like your approach though of unhooking and re-arranging the markup to make the CSS easier to write.
Here is an image I tried to note up, I will try explain what I think I would do to tweak the HTML markup to make your desired layout easier.
Link to image: https://cld.wthms.co/gZlk4MTo start we want everything to happen after
storefront_header_containerthen beforestorefront_header_container_close, I would also think it helpful to remove thestorefront_primary_navigation_wrapper&storefront_primary_navigation_wrapper_closeas we’re going to move or fire the two actions there, thestorefront_primary_navigation&storefront_header_cartbefore thestorefront_primary_navigation_wrapper_closeaction.I think then the
storefront_primary_navigation&storefront_header_cartactions should have a priority of 21 and 22 so they happen after the site branding and before the secondary navigation.That should hopefully give you decent HTML markup to then write some custom CSS for and style just the way you’d shared you wanted.
Forum: Themes and Templates
In reply to: [Storefront] Guide for removing actions with Storefront 2.5.0Hi there @blackawxs & @champdor,
Just out of curiosity first here, are your homepages still using the Homepage template or would they be converted over to using blocks?
^ See this video for an example that is now used as the Storefront homepage instead of the Homepage template. Those are all blocks and wouldn’t be effected by the actions. You can confirm by looking at the Page Attributes section and the Template would say Full width instead of Homepage.
Link to image: https://cld.wthms.co/1g2BMCForum: Themes and Templates
In reply to: [Storefront] how do i center my page titleHi Bruce,
What page would this be on your site? I ask as generally there is a way to target that specific page to then center just that header. Often the page ID, the template used, etc… is output into the markup.
Let us know the page and we can try to identify a way to target just that page. Thanks!
Forum: Themes and Templates
In reply to: [Storefront] Custom SCSSHi @jpb10,
I’m not sure why the Additional CSS section isn’t working, but for this minor tweak I would think that is a great use of the Additional CSS section.
Would you mind sharing the code you were attempting to use, or just in general what you are after with the span between site-branding and secondary-navigation.