colorlibhq / shapely Goto Github PK
View Code? Open in Web Editor NEWFree multipurpose WordPress theme built using Bootstrap
Home Page: https://colorlib.com/wp/themes/shapely/
Free multipurpose WordPress theme built using Bootstrap
Home Page: https://colorlib.com/wp/themes/shapely/
Related Topic :
https://colorlib.com/wp/forums/topic/removing-logo/#post-62734
Parse error in this theme:
Parse error: syntax error, unexpected '[' in */wp-content/themes/shapely/inc/widgets/widget-home-clients.php on line 18
Regards,
Rylko
Fixed navigation isn't working properly. It doesn't get fixed on second time your are scrolling down and sometimes it disappears for no reason at all.
This problem occurs in all browsers.
This button works only via widgets are but not via Customizer.
Related Topic :
custom_password_form
in extras.php
line 69 needs prefixRelated topic and solution on Shapely forum:
https://colorlib.com/wp/forums/topic/cfa-text-and-link-not-working/
Trying to install other parallax plugins of forge page builder to any of the blog posts results in the parallax not working in the other plugins. Changing the theme to any other and the functionality is restored.
Related topic and solution :
https://colorlib.com/wp/forums/topic/post-page-next-and-previous-buttons/#post-74608
The [Shapely] Client Section For FrontPage widget buttons don't work in theme customizer Admin area -> Appearance -> Customize
Related Topic :
https://colorlib.com/wp/forums/topic/client-section-not-working/
shapely_social_css
in socialnav.php
cannot be included in main styles.css file?This is happening because of javascript error message occurred on the customization screen as shown in the shared screenshot.
Related topic :
https://colorlib.com/wp/forums/topic/parralux-section-background-full-small-not-working/
The theme always display the message "The backup of this post in your browser is different from the version below. Restore the backup." in the post and page edit screen.
Find more information about it and the solution for the issue on the following topic
https://colorlib.com/wp/forums/topic/err-the-backup-of-this-post-in-your-browser-is-different-from-the-version-below/#post-50715
Related Topic and Solution :
https://colorlib.com/wp/forums/topic/mobile-menu-widget/#post-51905
Related topic and the solution :
https://colorlib.com/wp/forums/topic/shapelyjsshapely-scripts-js-is-missing/#post-50161
Related Topic and Solution :
https://colorlib.com/wp/forums/topic/full-width-template-unclosed-element/#post-59659
Related Topic and Solution :
https://colorlib.com/wp/forums/topic/shapely-feature-widget-fa-legal-alias-not-working/
Latest update broke smooth back to top scroll effect.
__()
/_e()
need to beesc_html__()
/esc_html_e()
shapely_search_form
esc_attr__()
where used as attribute values
widget-home-clients.php
line 42 as:<img alt="<?php esc_attr_e('Logos', 'shapely'); ?>" src="<?php echo esc_url( $logos['img'][$i] ); ?>" />
wp_kses()
if some html elements are requiredshapely_footer_callout function causing issue becauser in the resent theme version the function _e is replaced with esc_attr
Related Topic :
https://colorlib.com/wp/forums/topic/footer-callout-button/#post-76064
Solution :
https://colorlib.com/wp/forums/topic/footer-callout-2/#post-79573
The following esc_attr function used in footer.php file returns HTML code addedin the copyright text field as it is.
<div class="copyright-text"><?php echo esc_attr(get_theme_mod( 'shapely_footer_copyright' )); ?></div>
Use function get_stylesheet_directory instead of get_template_directory which is use din the following code to make the theme child theme ready.
/**
* WooCoomerce Support
*/
if ( class_exists( 'WooCommerce' ) ) {
require get_template_directory() . '/inc/woo-setup.php';
}
Related Topic :
https://colorlib.com/wp/forums/topic/child-theme-woo-setup-php-override-not-working/
The theme displays this error message on all pages except home page.
Find more information and the solution about it on the following topic
https://colorlib.com/wp/forums/topic/wp-tiles-and-shapely-issue/#post-51075
functions.php
must be inside a callback function and hooked properly. Check lines 208-215shapely_setup()
which starts from line 18functions.php
lines 173 to 179, you have enqueue masonry twiceFind more information about the issue on the following topic :
I am currently using your theme Shapely Version: 1.0.5 on Wordpress 4.6 (Mozilla Firefox 48.0 - Linux Mint 17.3 Rosa) and I have stumbled upon an issue with your ' shapely_footer_callout() ' function in extras.php.
I could not display anything on my page through ' Text for footer callout ' neither ' Text for footer callout button ' input options in Customizer/Shapely Options/ Main Options with these lines of code in place from above mentioned function:
<?php esc_attr(get_theme_mod('footer_callout_text')); ?>
<?php esc_attr(get_theme_mod('footer_callout_btntext')); ?>
so I changed them into:
<?php esc_attr_e( ( get_theme_mod('footer_callout_text') ) ? get_theme_mod('footer_callout_text') : 'Text' , 'shapely' ); ?>
<?php esc_attr_e( ( get_theme_mod('footer_callout_btntext') ) ? get_theme_mod('footer_callout_btntext') : 'ButtonText' , 'shapely' ); ?>
Related Topic :
shapely_sanitize_slidecat
shapely_sanitize_radio_header
Related topic and solution :
https://colorlib.com/wp/forums/topic/error-500-when-install/
get_theme_mod
and used for output needs to be sanitized properly.extras.php
function get_shapely_theme_options
, all options that are outputted needs to be escaped via esc_attr()
when using using as CSS value if ( get_theme_mod('social_color')) {
echo '.social-icons li a {color: ' . esc_attr( get_theme_mod('social_color') ) . ' !important ;}';
}
$layout_class
needs to be escaped via esc_attr
woo-setup.php
line 67index.php
line 17page.php
line 17search.php
line 14single.php
line 13extras.php
line 594 get_theme_mod('blog_name')
needs to be escaped properly maybe esc_attr
or esc_html
depending upon your use case.esc_url_raw()
to sanitize input links in widget-home-call-for-action.php
line 97. esc_url()
is for sanitizing output links
esc_attr
to sanitize $title
, esc_url
to sanitize $button_link
in line 37esc_url()
extras.php
line 247 get_the_permalink()
, all instances of get_pagenum_link()
, line 542 $logo[0]
used as value for href=
and src=
template-tags.php
line 28 get_author_posts_url
, line 126 get_category_link
widgets/widget-home-clients.php
line 41 $logos['link'][$i]
and 42 $logos['img'][$i]
widgets/widget-home-parallax.php
line 63 $button2_link
, 64 $button1_link
, all instances of $image_src
used as html valueswidgets/widget-home-testimonials.php
all instances of$image_src
used as html valueswidgets/widget-recent-posts.php
line 55 get_permalinkwoo-setup.php
line 108 $shop_page_url
, 110 $cart_url
esc_attr()
extras.php
line 247 get_the_title()
, you can also use the_title_attribute( 'echo=0' )
function here, line 78 and 293 get_search_query()
template-tags.php
line 28 get_the_author
woo-setup.php
line 108 $start_shopping
, 110 $viewing_cart
Related Topic and Solution :
Hi, i have a problem after activating the theme. White blank in live preview and broken web site after activating theme. On localhost everything works great, but not on the hosted website
shapely_admin_script()
in functions.php
, is there any reason you have added wp_enqueue_media();
outside the if( $hook == 'widgets.php' || $hook == 'customize.php' )
condition check?Recent posts widget doesn't display images but in the description it says it will display with thumbnails
Related topic and solution :
https://colorlib.com/wp/forums/topic/thumbnails-of-recent-blog-posts/#post-57788
theme_location
and not menu
in extras.php
line 101. More info: https://make.wordpress.org/themes/2012/03/16/custom-menus-implementation-use-theme_location-instead-of-menu-in-wp_nav_menu/customizer.php
, I have no idea why you have chosen to use shapely_sanitize_number
to sanitize header_logo
functions.php
function shapely_scripts()
where you have shapely-icons, flexslider-css
wp_enqueue_style( 'font-awesome', , get_template_directory_uri().'/inc/css/font-awesome.min.css' );
readme.txt
line 10, license for theme is GPL v3 but in styles.css
line 8 and readme.me
, license is defined as GPL v2Related Topic :
https://colorlib.com/wp/forums/topic/dropdown-menu-3rd-level/
Untitled
string in extras.php
line 58 translation readyDefault
string in metaboxes.php
line 66 translation readyA declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.