-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add amp-sticky-ad #59
Comments
@pradeep910 Can you share more details on what needs to be done in this issue. |
@deepaklalwani97 Added description pls let me know if you still have questions. |
@pradeep910 Should I add fields for height and width to the options page or are we going to use a fixed height and width for the sticky ad. |
@deepaklalwani97 Width and height can be passed through function, but ideally it only should show banner / horizontal ads.
Default should be |
@pradeep910 Yes I know my question is we want to pass these sizes as hardcoded in function or provide a setting for the user to add. |
I have added different sizes according to the devices. Let me know if we want a setting for that. This PR is ready for review #62. |
@pradeep910 we should give an attribute option to user for sticky ad where he can specify other attributes as well. example
or
|
@sagarnasit @deepaklalwani97
|
@pradeep910 @sagarnasit I don't think the separate function would make any difference it would just create the redundancy as the code in both the functions would almost be the same. Still, let me know your thoughts and if we want to go ahead with this. |
@pradeep910 About the size of ads do we want to keep a specific static size for all devices or dynamically passed by the user from settings? |
@deepaklalwani97 Whole purpose of making a separate function is to make it developer friendly and easy to understand the functionality. Under the hood it will call the
We will also need to allow dynamic passing of attributes like we are doing it for normal amp ad. |
@sagarnasit Should I add three settings for different device sizes( i.e mobile, tablet, desktop ) for a user to add? |
@deepaklalwani97 Settings remain same. Please do not add sticky ad in footer, instead user will config sticky ad like normal ad by passing required attributes. What is different for sticky ad is that we will use separate function |
@sagarnasit @pradeep910 The suggested changes are addressed in #62. Can you please re-review again and approve. so I can get this tested by QA and merge it. |
@pradeep910 We cannot have multiple breakpoints for the amp sticky ad. Because it will throw validation error in reader mode and remove other |
@deepaklalwani97 Lets use fixed size for sticky ad. |
I have updated the PR to add setting fields for height and width to be applied to the sticky ad. |
Add support for amp sticky ad for mobile - https://amp.dev/documentation/components/amp-sticky-ad/
We can add an option in the plugin options page -
Enabling this will add amp-sticky-ad that shows at the footer of page.
Out put this markup with dynamic values from options page -
The text was updated successfully, but these errors were encountered: