- Created astra-child-hvac child theme with all HVAC page templates - Applied Astra-specific layout settings to remove sidebars - Set all HVAC pages to 'no-sidebar' layout using Astra meta - Added custom CSS to child theme for full-width layouts - Templates now properly render shortcode content without sidebars 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
33 lines
No EOL
972 B
Bash
Executable file
33 lines
No EOL
972 B
Bash
Executable file
#!/bin/bash
|
|
|
|
echo "=== Copying Page Templates to Theme Directory ==="
|
|
|
|
# SSH into staging and copy templates
|
|
ssh roodev@146.190.76.204 << 'EOF'
|
|
cd /home/974670.cloudwaysapps.com/uberrxmprk/public_html
|
|
|
|
# Get active theme directory
|
|
THEME_DIR=$(wp theme path $(wp theme list --status=active --field=name))
|
|
echo "Active theme directory: $THEME_DIR"
|
|
|
|
# Create hvac-community-events directory in theme if it doesn't exist
|
|
mkdir -p "$THEME_DIR/hvac-community-events"
|
|
|
|
# Copy page templates from plugin to theme
|
|
PLUGIN_DIR="wp-content/plugins/hvac-community-events"
|
|
|
|
echo "Copying page templates..."
|
|
if [ -d "$PLUGIN_DIR/templates" ]; then
|
|
# Copy all page-*.php files
|
|
find "$PLUGIN_DIR/templates" -name "page-*.php" -exec cp {} "$THEME_DIR/hvac-community-events/" \;
|
|
|
|
# List copied files
|
|
echo "Templates copied to theme:"
|
|
ls -la "$THEME_DIR/hvac-community-events/"
|
|
else
|
|
echo "Plugin templates directory not found!"
|
|
fi
|
|
|
|
# Clear cache
|
|
wp cache flush
|
|
EOF |