问题标签 [squarespace]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
squarespace - SquareSpace 标头注入代码
在 SquareSpace 博客上(在设置中)有一个页面标题注入代码部分。
然后它将您在此处放置的任何内容放在博客摘要页面和所有帖子的标题中。
我想知道是否可以只为单个帖子而不是博客摘要页面注入标题代码?
wordpress - 重定向到 Squarespace 后,如何查看旧的 wordpress 网站
我最近将我的 1 和 1 注册域 masonsmn.com 从我有一个 wordpress 站点的 justhost 指向了我使用 squarespace 构建的新站点。
我想像以前一样查看旧网站的几页(即我搞砸了。事后看来,一些屏幕截图会是个好主意)。
有谁知道我现在如何访问这些 wordpress 页面?
谢谢,
javascript - jQuery 只在 Squarespace 页面上工作,在 url 中没有 #
我是 Squarespace 和 jQuery 的新手。我已经通过将 jQuery 注入到我的标头中来实现它。
我试图在点击 H3 时显示两段文本。
当我从 my-accountsquarespace.com/whitney-oldenburg 的 url 从后端查看页面时,它可以工作(不幸的是,我似乎无法在注销时访问此页面)
但是,当我查看此页面时: http ://gitanarosa.com/artist/#/whitney-oldenburg/ 登录或注销基本相同,但没有在 Squarespace 添加的顶部出现一些奇怪的拉伸缩略图,它没有不行。
我的代码有问题吗?我尝试使用带有“#”而不是 H3 的锚元素,但这并没有什么不同?它与url中的#有什么关系吗?
或者这是一些 Squarespace 特定的问题?
谢谢。
paypal - Squarespace: Full Paypal integration with Squarespace
Squarespace currently only supports Stripe as a payment platform. I am looking for a way to fully integrate Paypal as the go-to way to pay (one of the reasons for this is that Stripe’s checkout page is currently in english and that is a complete no-go for our client) with full inventory sync (Squarespace with Paypal), tracking payments in Squarespace(!), etc. — I basically want to reproduce the full e-commerce process behind Squarespace, only not via Stripe, but via Paypal. Whenever I checkout on Squarespace, the whole cart should be sent to Paypal, processed there, the customer pays, is sent back to Squarespace and Squarespace should be aware of the changes/purchase/payment and update the inventory.
Is there a way to achieve this? I have googled extensively and am aware of threads like http://answers.squarespace.com/questions/16845/is-there-a-way-to-integrate-paypal-with-squarespace , this is just simply not enough + opens a ton of new issues (a custom Paypal button is needed whenever a new product is added to Squarespace’s inventory, for example).
I’d appreciate any help, thank you.
blogs - SquareSpace如何查看本地模板?
我目前正在开发 SquareSpace 的自定义模板,不知道如何查看我在本地所做的更改?还有任何资源可以帮助我更改模板,网站上的文档不是很好吗?
javascript - Javascript 在某些窗口大小下不起作用
免责声明:我是 JS 新手。我正在尝试在 Squarespace 模板上使用此代码。它应该非常简单明了,但我认为它与现有代码有冲突。
点击 应该会打开移动导航菜单#mobileMenu
,只有在浏览器尺寸<1100px时才可见。它在 640px 和 1100px 之间工作。任何低于 640 像素的东西,它似乎什么都不做。奇怪的是,如果我将尺寸缩小到 640 像素或以下,它就会起作用。但是如果我在 640px 或以下加载页面,它就不起作用。
我对JS的了解很浅。也许覆盖原来的 JS 会做到这一点,但我不知道该怎么做。任何帮助表示赞赏,谢谢!
javascript - jQuery addClass() 在某些媒体查询中不起作用
如果页面已加载且浏览器窗口介于1100px
&之间640px
,则以下 jQuery 脚本可以正常工作:
这样做是什么时候a#mobileMenu
单击,添加一个类body
并且移动导航菜单滑入,然后删除该类并且移动导航菜单在再次单击时关闭。
但是如果页面在 加载<=640px
,该类.mobile-nav-open
永远不会被添加到body
. 我一生都无法弄清楚为什么它不起作用。该代码也通过 Squarespace 的代码注入插入到页脚中。模板中包含很多可能会干扰的 JS,但我不知道如何覆盖它。任何人都可以帮助我吗?任何帮助表示赞赏。
该网站可以在这里看到:https ://ryan-vandyke-4rks.squarespace.com/
这看起来是我想要覆盖的:
git - 使用 Github 设置 Squarespace 开发者帐户
我正在尝试使用我的 Github 帐户设置我的新 Squarespace Developer 站点。
我已按照Squarespace 的指南执行此操作,但每当我尝试提交或发布时,我都会继续收到错误消息。我对我的文件进行了一些测试更改以进行测试,但 Github 仍然返回“计算差异错误”。
我相信我正确地克隆了 repo,因为它出现在我的文件系统中——但我仍然无法将它发布到网络上。
这张图片显示了 Github 返回的错误。
我的问题是:如何让我的 Squarespace 开发者帐户与 Github 一起使用?我希望能够进行更改并提交并让它们立即在我的网站上上线。
css - 媒体查询断点 1218px
我正在这个网站上工作(https://stagetoday.squarespace.com/),但我需要在 css 中为断点 1218px 编写一个媒体查询。
当我通过那个宽度时,我的站点字幕会跳到我的菜单项下,但它必须保持在它之上。
我已经有一个 640px 断点的媒体查询,所有东西都在中心对齐,这没关系,但是在 640px 和 1218px 之间,右边的菜单不是我想要的。
谁能帮我解决这个媒体查询?
css - 无法删除元素css的下划线
我正在这个网站上工作https://stagetoday.squarespace.com/。
在左下角,有一个链接,但是当我将鼠标悬停在它上面时,我无法删除 text-decoration:underline。
我试过了text-decoration:none
,text-decoration:none!important
但它仍然存在。
谁能帮我?